]> git.mjollnir.org Git - moodle.git/commitdiff
turning on the upgrade in progress check again, added skip warning link
authorskodak <skodak>
Mon, 28 Aug 2006 18:07:15 +0000 (18:07 +0000)
committerskodak <skodak>
Mon, 28 Aug 2006 18:07:15 +0000 (18:07 +0000)
admin/index.php

index 518f4d4aa28a4378304beea9955bb0a820a9d957..96a92dc73e3b3ef1ad20edd963fd535cbade6dbb 100644 (file)
@@ -29,6 +29,7 @@
     $id             = optional_param('id', '', PARAM_ALPHANUM);
     $confirmupgrade = optional_param('confirmupgrade', 0, PARAM_BOOL);
     $agreelicence = optional_param('agreelicence',0, PARAM_BOOL);
+    $ignoreupgradewarning = optional_param('ignoreupgradewarning', 0, PARAM_BOOL);
 
 /// Interim solution to keep the XMLDB installation disabled
 /// can be enabled by hand in the config.php, of course
     }
 
 /// check upgrade status first
-    #upgrade_check_running("Upgrade already running, please wait!", 10);
+    if ($ignoreupgradewarning and !empty($_SESSION['upgraderunning'])) {
+        $_SESSION['upgraderunning'] = 0;
+    }
+    upgrade_check_running("Upgrade already running in this session, please wait!<br />Click on the exclamation marks to ignore this warning (<a href=\"index.php?ignoreupgradewarning=1\">!!!</a>).", 10);
 
 /// Check some PHP server settings