MDL-20204 show debugging when require_js() used

This commit is contained in:
Petr Skoda
2009-12-25 14:40:44 +00:00
parent 9fd49f5fd4
commit ae1dd0b1a8
+2 -3
View File
@@ -1692,9 +1692,8 @@ function require_js($lib) {
return;
}
// TODO uncomment this once we have eliminated the remaining calls to require_js from core.
//debugging('Call to deprecated function require_js. Please use $PAGE->requires->js() ' .
// 'or $PAGE->requires->yui2_lib() instead.', DEBUG_DEVELOPER);
debugging('Call to deprecated function require_js. Please use $PAGE->requires->js() ' .
'or $PAGE->requires->yui2_lib() instead.', DEBUG_DEVELOPER);
if (strpos($lib, 'yui_') === 0) {
echo $PAGE->requires->yui2_lib(substr($lib, 4))->asap();