From: skodak Date: Sun, 7 Jun 2009 08:46:13 +0000 (+0000) Subject: MDL-17458 fixing installation regressions - no output and timeout X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c3d0e1492edfc93e885fffbea79f00f3f3ef3d06;p=moodle.git MDL-17458 fixing installation regressions - no output and timeout --- diff --git a/admin/index.php b/admin/index.php index c78c2efa71..3719835f0f 100644 --- a/admin/index.php +++ b/admin/index.php @@ -40,6 +40,7 @@ if (version_compare(phpversion(), '5.2.0') < 0) { // try to flush everything all the time @ob_implicit_flush(true); +while(@ob_end_clean()); // ob_end_flush prevents sending of headers require('../config.php'); require_once($CFG->libdir.'/adminlib.php'); // various admin-only functions diff --git a/lib/upgradelib.php b/lib/upgradelib.php index b0be5f44b1..c6b5144719 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -1024,6 +1024,7 @@ function install_core($version, $verbose) { global $CFG, $DB; try { + set_time_limit(600); print_upgrade_part_start('moodle', true, $verbose); // does not store upgrade running flag $DB->get_manager()->install_from_xmldb_file("$CFG->libdir/db/install.xml");