Merge branch 'MDL-41840-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
+2
-9
@@ -25,11 +25,9 @@ require_login($course);
|
||||
// Must hold restoretargetimport in the current course
|
||||
require_capability('moodle/restore:restoretargetimport', $context);
|
||||
|
||||
$heading = get_string('import');
|
||||
|
||||
// Set up the page
|
||||
$PAGE->set_title($heading);
|
||||
$PAGE->set_heading($heading);
|
||||
$PAGE->set_title($course->shortname . ': ' . get_string('import'));
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_url(new moodle_url('/backup/import.php', array('id'=>$courseid)));
|
||||
$PAGE->set_context($context);
|
||||
$PAGE->set_pagelayout('incourse');
|
||||
@@ -189,11 +187,6 @@ if ($backup->get_stage() == backup_ui::STAGE_FINAL) {
|
||||
$backup->save_controller();
|
||||
}
|
||||
|
||||
// Adjust the page for the stage
|
||||
$PAGE->set_title($heading.': '.$backup->get_stage_name());
|
||||
$PAGE->set_heading($heading.': '.$backup->get_stage_name());
|
||||
$PAGE->navbar->add($backup->get_stage_name());
|
||||
|
||||
// Display the current stage
|
||||
echo $OUTPUT->header();
|
||||
if ($backup->enforce_changed_dependencies()) {
|
||||
|
||||
+2
-5
@@ -43,11 +43,8 @@ if ($stage & restore_ui::STAGE_CONFIRM + restore_ui::STAGE_DESTINATION) {
|
||||
}
|
||||
}
|
||||
|
||||
$heading = $course->fullname;
|
||||
|
||||
$PAGE->set_title($heading.': '.$restore->get_stage_name());
|
||||
$PAGE->set_heading($heading);
|
||||
$PAGE->navbar->add($restore->get_stage_name());
|
||||
$PAGE->set_title($course->shortname . ': ' . get_string('restore'));
|
||||
$PAGE->set_heading($course->fullname);
|
||||
|
||||
$renderer = $PAGE->get_renderer('core','backup');
|
||||
echo $OUTPUT->header();
|
||||
|
||||
Reference in New Issue
Block a user