Skip to content

Commit f2d83f5

Browse files
author
David Monllao
committed
Merge branch 'MDL-61990' of https://github.com/timhunt/moodle
2 parents 03d9f4c + 166c43d commit f2d83f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/outputrequirementslib.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,9 @@ public function js_call_amd($fullmodule, $func, $params = array()) {
10231023
if ($CFG->debugdeveloper) {
10241024
$toomanyparamslimit = 1024;
10251025
if (strlen($strparams) > $toomanyparamslimit) {
1026-
debugging('Too many params passed to js_call_amd("' . $fullmodule . '", "' . $func . '")', DEBUG_DEVELOPER);
1026+
debugging('Too much data passed as arguments to js_call_amd("' . $fullmodule . '", "' . $func .
1027+
'"). Generally there are better ways to pass lots of data from PHP to JavaScript, for example via Ajax, data attributes, ... . ' .
1028+
'This warning is triggered if the argument string becomes longer than ' . $toomanyparamslimit . ' characters.', DEBUG_DEVELOPER);
10271029
}
10281030
}
10291031

0 commit comments

Comments
 (0)