diff --git a/lib/setup.php b/lib/setup.php index 22a17f1705e..f81800fb8f4 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -14,10 +14,6 @@ die; } - if (!isset($CFG->enrol)) { // This is a hack to fix bug 1598 - $CFG->enrol = 'internal'; - } - /// If there are any errors in the standard libraries we want to know! error_reporting(E_ALL); @@ -96,6 +92,11 @@ error_reporting($CFG->debug); +/// Set a default enrolment configuration (see bug 1598) + if (!isset($CFG->enrol)) { + $CFG->enrol = 'internal'; + } + /// File permissions on created directories in the $CFG->dataroot if (empty($CFG->directorypermissions)) {