From 74b1ef5af690b6b2c6888bd6c2be64690e45cd53 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 8 Dec 2003 06:11:56 +0000 Subject: [PATCH] Turn off time limits on all upgrades --- admin/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.39.5