diff --git a/backup/import.php b/backup/import.php index 586edd307e9..0bb9e6a2a7c 100644 --- a/backup/import.php +++ b/backup/import.php @@ -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()) { diff --git a/backup/restore.php b/backup/restore.php index 4e2c06dd1e4..d844f9fd2d6 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -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();