MDL-52940 core_backup: prevent always displaying logs

This commit is contained in:
Mark Nelson 2016-02-01 12:37:27 +08:00
parent 4ffe9d1bd3
commit 20e102773f
2 changed files with 6 additions and 2 deletions

View file

@ -138,7 +138,9 @@ if ($backup->get_stage() == backup_ui::STAGE_FINAL) {
}
// Get HTML from logger.
$loghtml = $logger->get_html();
if ($CFG->debugdisplay) {
$loghtml = $logger->get_html();
}
// Hide the progress display and first backup step bar (the 'finished' step will show next).
echo html_writer::end_div();

View file

@ -110,7 +110,9 @@ if (!$restore->is_independent()) {
// Do actual restore.
$restore->execute();
// Get HTML from logger.
$loghtml = $logger->get_html();
if ($CFG->debugdisplay) {
$loghtml = $logger->get_html();
}
// Hide this section because we are now going to make the page show 'finished'.
echo html_writer::end_div();
echo html_writer::script('document.getElementById("executionprogress").style.display = "none";');