Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'MDL-61990_35' of https://github.com/timhunt/moodle into…
Browse files Browse the repository at this point in the history
… MOODLE_35_STABLE
  • Loading branch information
David Monllao committed Nov 14, 2018
2 parents 512547d + edfc17d commit 6e493f5
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) {
$toomanyparamslimit = 1024;
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 6e493f5

Please sign in to comment.