Permalink
Browse files

Merge branch 'MDL-61990' of https://github.com/timhunt/moodle

  • Loading branch information...
dmonllao committed Nov 14, 2018
2 parents 03d9f4c + 166c43d commit f2d83f50e155d7127e00cff49dbb682c96bded72
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 f2d83f5

Please sign in to comment.