Supress errors on set_time_limit() for servers with safe mode restrictions

This commit is contained in:
moodler
2004-05-18 14:12:21 +00:00
parent d5f286f1aa
commit a71bfa1c78
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -126,7 +126,7 @@
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
+2 -2
View 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.
@@ -291,7 +291,7 @@
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)) {
+1 -1
View File
@@ -20,7 +20,7 @@
/// Turn off time limits, sometimes upgrades can be slow.
set_time_limit(0);
@set_time_limit(0);
/// Print header
+1 -1
View 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)) {