Skip to content

Commit

Permalink
Merge branch 'MDL-61990' of https://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Nov 14, 2018
2 parents 03d9f4c + 166c43d commit f2d83f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/outputrequirementslib.php
Expand Up @@ -1023,7 +1023,9 @@ public function js_call_amd($fullmodule, $func, $params = array()) {
if ($CFG->debugdeveloper) { if ($CFG->debugdeveloper) {
$toomanyparamslimit = 1024; $toomanyparamslimit = 1024;
if (strlen($strparams) > $toomanyparamslimit) { if (strlen($strparams) > $toomanyparamslimit) {
debugging('Too many params passed to js_call_amd("' . $fullmodule . '", "' . $func . '")', DEBUG_DEVELOPER); debugging('Too much data passed as arguments to js_call_amd("' . $fullmodule . '", "' . $func .
'"). Generally there are better ways to pass lots of data from PHP to JavaScript, for example via Ajax, data attributes, ... . ' .
'This warning is triggered if the argument string becomes longer than ' . $toomanyparamslimit . ' characters.', DEBUG_DEVELOPER);
} }
} }


Expand Down

0 comments on commit f2d83f5

Please sign in to comment.