MDL-39474 Library: Make a fast way to check developer debug mode

This commit is contained in:
sam marshall
2013-06-11 16:29:00 +01:00
parent b3be471f52
commit 5c92e7a740
6 changed files with 20 additions and 3 deletions
+1
View File
@@ -150,6 +150,7 @@ $CFG->docroot = 'http://docs.moodle.org';
$CFG->running_installer = true;
$CFG->early_install_lang = true;
$CFG->ostype = (stristr(PHP_OS, 'win') && !stristr(PHP_OS, 'darwin')) ? 'WINDOWS' : 'UNIX';
$CFG->developerdebug = true;
$parts = explode('/', str_replace('\\', '/', dirname(dirname(__FILE__))));
$CFG->admin = array_pop($parts);