From: moodler Date: Sat, 14 Dec 2002 18:33:37 +0000 (+0000) Subject: Turn off time limits with big SQL commands ... some databases are really slow. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ca3cf39ee1d245762dc02e8d8f35a03f7cc03bc5;p=moodle.git Turn off time limits with big SQL commands ... some databases are really slow. --- diff --git a/admin/index.php b/admin/index.php index f6fdd229cf..057229e93f 100644 --- a/admin/index.php +++ b/admin/index.php @@ -39,6 +39,7 @@ print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup); 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); @@ -180,6 +181,7 @@ } $updated_modules = true; $db->debug = true; + set_time_limit(0); // To allow slow databases to complete the long SQL if (modify_database("$fullmod/db/$CFG->dbtype.sql")) { $db->debug = false; if ($module->id = insert_record("modules", $module)) {