Skip to content

Commit

Permalink
Merge branch 'MDL-35638-master' of git://github.com/ankitagarwal/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Nov 16, 2014
2 parents fea4baf + 751c05c commit 7655594
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backup/restore.php
Expand Up @@ -6,6 +6,7 @@

$contextid = required_param('contextid', PARAM_INT);
$stage = optional_param('stage', restore_ui::STAGE_CONFIRM, PARAM_INT);
$cancel = optional_param('cancel', '', PARAM_ALPHA);

list($context, $course, $cm) = get_context_info_array($contextid);

Expand All @@ -30,7 +31,10 @@
$PAGE->set_heading($coursefullname);

$renderer = $PAGE->get_renderer('core','backup');
echo $OUTPUT->header();
if (empty($cancel)) {
// Do not print the header if user cancelled the process, as we are going to redirect the user.
echo $OUTPUT->header();
}

// Prepare a progress bar which can display optionally during long-running
// operations while setting up the UI.
Expand Down

0 comments on commit 7655594

Please sign in to comment.