]> git.mjollnir.org Git - moodle.git/commitdiff
Turn off time limits on all upgrades
authormoodler <moodler>
Mon, 8 Dec 2003 06:11:56 +0000 (06:11 +0000)
committermoodler <moodler>
Mon, 8 Dec 2003 06:11:56 +0000 (06:11 +0000)
admin/index.php

index 6864a7c989ed10dd06218a88cebba7b2061ccaff..f97ee69fa98269062f6a3fd6e9871a6358e808e7 100644 (file)
@@ -75,7 +75,9 @@
         $CFG->version = "";
     }
 
+/// Turn off time limits, sometimes upgrades can be slow.
 
+    set_time_limit(0);
 
 /// Check if the main tables have been installed yet or not.
 
         print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup, "", "", false, "&nbsp;", "&nbsp;");
         if (file_exists("$CFG->libdir/db/$CFG->dbtype.sql")) {
             $db->debug = true;
-            set_time_limit(0);  // To allow slow databases to complete the long SQL
             if (modify_database("$CFG->libdir/db/$CFG->dbtype.sql")) {
                 $db->debug = false;
                 notify($strdatabasesuccess, "green");