Skip to content
Permalink
Browse files
Merge branch 'MDL-61990_35' of https://github.com/timhunt/moodle into…
… MOODLE_35_STABLE
  • Loading branch information
David Monllao committed Nov 14, 2018
2 parents 512547d + edfc17d commit 6e493f59b8ec5884a07b4b9645fe10d7d77d2956
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/outputrequirementslib.php
@@ -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);
}
}

0 comments on commit 6e493f5

Please sign in to comment.