From: moodler Date: Mon, 8 Dec 2003 06:11:56 +0000 (+0000) Subject: Turn off time limits on all upgrades X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=74b1ef5af690b6b2c6888bd6c2be64690e45cd53;p=moodle.git Turn off time limits on all upgrades --- diff --git a/admin/index.php b/admin/index.php index 6864a7c989..f97ee69fa9 100644 --- a/admin/index.php +++ b/admin/index.php @@ -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. @@ -115,7 +117,6 @@ print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup, "", "", false, " ", " "); 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");