]> git.mjollnir.org Git - moodle.git/commitdiff
Merged changes from 14 STABLE
authormoodler <moodler>
Tue, 24 Aug 2004 04:58:06 +0000 (04:58 +0000)
committermoodler <moodler>
Tue, 24 Aug 2004 04:58:06 +0000 (04:58 +0000)
lib/adminlib.php

index 5800820e3d92521b2ecae0eb672b282c9dc6e41d..196a01b138df2e04628d54d0f3df3e08fbde11f6 100644 (file)
@@ -2,7 +2,7 @@
        // Contains functions that only administrators will ever need to use
 
 function upgrade_enrol_plugins($return) {
-    global $CFG;
+    global $CFG, $db;
 
     if (!$mods = get_list_of_plugins("enrol") ) {
         error("No modules installed!");
@@ -87,7 +87,7 @@ function upgrade_enrol_plugins($return) {
 function upgrade_activity_modules($return) {
 /// Find and check all modules and load them up or upgrade them if necessary
 
-    global $CFG;
+    global $CFG, $db;
 
     if (!$mods = get_list_of_plugins("mod") ) {
         error("No modules installed!");