Make developer debug mode available to JavaScript.

This commit is contained in:
tjhunt
2008-10-29 08:17:18 +00:00
parent 5f772e4afa
commit e4749fcc08
+6 -2
View File
@@ -2807,11 +2807,15 @@ function print_js_config($settings = array(), $prefix='', $return = false) {
*/
function standard_js_config() {
global $CFG;
return print_js_config(array(
$config = array(
'wwwroot' => $CFG->httpswwwroot, // Yes, really.
'pixpath' => $CFG->pixpath,
'modpixpath' => $CFG->modpixpath,
), 'moodle_cfg', true);
);
if (debugging('', DEBUG_DEVELOPER)) {
$config['developerdebug'] = true;
}
return print_js_config($config, 'moodle_cfg', true);
}
/**