MDL-17458 fixing installation regressions - no output and timeout
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user