]> git.mjollnir.org Git - moodle.git/commitdiff
Supress errors on set_time_limit() for servers with safe mode restrictions
authormoodler <moodler>
Tue, 18 May 2004 14:12:21 +0000 (14:12 +0000)
committermoodler <moodler>
Tue, 18 May 2004 14:12:21 +0000 (14:12 +0000)
admin/cron.php
admin/index.php
admin/upgradelogs.php
lib/blocklib.php

index 5f307ba63df5161f0b2e891e43f4577ffa05b6b0..10c5e9fa5035760deb285ef2b99a19b66bd3e220 100644 (file)
     if (!isset($CFG->disablescheduledbackups)) {   // Defined in config.php
         //Execute backup's cron
         //Perhaps a long time and memory could help in large sites
-        set_time_limit(0);
+        @set_time_limit(0);
         ini_set("memory_limit","56M");
         if (file_exists("$CFG->dirroot/backup/backup_scheduled.php") and
             file_exists("$CFG->dirroot/backup/backuplib.php") and
index 1f939ab965dce4974225d3d3f367d32bce93a17d..5d9b0bc594d7b93c0cf60fe40f92bc1969dcbb1e 100644 (file)
@@ -68,7 +68,7 @@
 
 /// Turn off time limits, sometimes upgrades can be slow.
 
-    set_time_limit(0);
+    @set_time_limit(0);
 
 /// Check if the main tables have been installed yet or not.
 
             print_heading($module->name);
             $updated_modules = true;
             $db->debug = true;
-            set_time_limit(0);  // To allow slow databases to complete the long SQL
+            @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)) {
index 0ca7697c3d37de64376564995d1091dcc401b67b..07771ba590008f9375920f9bf280b8f37260e43b 100644 (file)
@@ -20,7 +20,7 @@
 
 /// Turn off time limits, sometimes upgrades can be slow.
 
-    set_time_limit(0);
+    @set_time_limit(0);
 
 
 /// Print header
index ad66a8ed430bbb2b064792fa94810175c83ae23e..87353413a613d54f90d27767743ce65c49a683ad 100644 (file)
@@ -537,7 +537,7 @@ function upgrade_blocks_plugins($continueto) {
             print_heading($block->name);
             $updated_blocks = true;
             $db->debug = true;
-            set_time_limit(0);  // To allow slow databases to complete the long SQL
+            @set_time_limit(0);  // To allow slow databases to complete the long SQL
             if (!is_dir("$fullblock/db/") || modify_database("$fullblock/db/$CFG->dbtype.sql")) {
                 $db->debug = false;
                 if ($block->id = insert_record('blocks', $block)) {