Supress errors on set_time_limit() for servers with safe mode restrictions
This commit is contained in:
+1
-1
@@ -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
@@ -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)) {
|
||||
|
||||
@@ -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
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user