From: stronk7 Date: Thu, 12 Jun 2003 15:35:37 +0000 (+0000) Subject: Changed max_execution_time to 3000. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ac6a7b144dc880c56cd811dbf32db141740c1f42;p=moodle.git Changed max_execution_time to 3000. Call to backup_required_functions included. --- diff --git a/backup/backup.php b/backup/backup.php index 7fae70390c..663561107c 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -34,6 +34,9 @@ if (!$site = get_site()) { error("Site not found!"); } + + //Check necessary functions exists. Thanks to gregb@crowncollege.edu + backup_required_functions(); //Check backup_version upgrade_backup_db($backup_version,$backup_release,"backup.php"); @@ -76,7 +79,7 @@ print_simple_box_start("center", "", "$THEME->cellheading"); //Adjust some php variables to the execution of this script - ini_set("max_execution_time","300"); + ini_set("max_execution_time","3000"); ini_set("memory_limit","56M"); //Call the form, depending the step we are diff --git a/backup/restore.php b/backup/restore.php index 274bcc608f..b839d5dbd3 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -36,6 +36,9 @@ if (!$site = get_site()) { error("Site not found!"); } + + //Check necessary functions exists. Thanks to gregb@crowncollege.edu + backup_required_functions(); //Check backup_version if ($file) { @@ -79,7 +82,7 @@ print_simple_box_start("center", "", "$THEME->cellheading"); //Adjust some php variables to the execution of this script - ini_set("max_execution_time","300"); + ini_set("max_execution_time","3000"); ini_set("memory_limit","56M"); //Call the form, depending the step we are