mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-55618 backup: Header should not be output twice
Before this patch if the pre-check failed during the final stage of an import a request for the page header to be output was made for a second time, this caused a coding_error to occur. This change removes the second request to output the page header, which will allow the user to see the reasons the pre-check failed.
This commit is contained in:
parent
5c33a0db21
commit
fefd9fed83
@ -145,7 +145,6 @@ if ($backup->get_stage() == backup_ui::STAGE_FINAL) {
|
||||
if (!empty($precheckresults['errors'])) { // If errors are found, terminate the import.
|
||||
fulldelete($tempdestination);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $renderer->precheck_notices($precheckresults);
|
||||
echo $OUTPUT->continue_button(new moodle_url('/course/view.php', array('id'=>$course->id)));
|
||||
echo $OUTPUT->footer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user