mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
still more upgrade logging fixes
This commit is contained in:
parent
26c91c7394
commit
408965376d
1 changed files with 2 additions and 0 deletions
|
@ -466,9 +466,11 @@ function upgrade_log_finish() {
|
|||
@ob_end_flush();
|
||||
if ($upgradelogbuffer !== '') {
|
||||
@fwrite($upgradeloghandle, $upgradelogbuffer);
|
||||
$upgradelogbuffer = '';
|
||||
}
|
||||
if ($upgradeloghandle and ($upgradeloghandle !== 'error')) {
|
||||
@fclose($upgradeloghandle);
|
||||
$upgradeloghandle = false;
|
||||
}
|
||||
@session_start(); // ignore header errors, we only need to reopen session
|
||||
$_SESSION['upgraderunning'] = 0; // clear upgrade indicator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue