]> git.mjollnir.org Git - moodle.git/commitdiff
[multienrol]Set default enrol_plugins_enabled if the variable is not set
authormartinlanghoff <martinlanghoff>
Thu, 9 Mar 2006 03:58:08 +0000 (03:58 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 9 Mar 2006 03:58:08 +0000 (03:58 +0000)
lib/setup.php

index 11f223bc52f08565a17b403a785deb1791c126c6..c433db38805a079a23f825e9d7f5916b41c8949e 100644 (file)
@@ -206,6 +206,11 @@ global $HTTPSPAGEREQUIRED;
         $CFG->enrol = 'manual';
     }
 
+/// Set default enabled enrolment plugins
+    if (!isset($CFG->enrol_plugins_enabled)) {
+        $CFG->enrol_plugins_enabled = 'manual';
+    }
+
 /// File permissions on created directories in the $CFG->dataroot
 
     if (empty($CFG->directorypermissions)) {