From 6583afb373d785c35ebed4f23ee818b96edb4019 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Fri, 23 Jul 2010 08:08:37 +0000 Subject: [PATCH] navigation MDL-23109 Fixed bug with navigation in restore code --- backup/restore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/restore.php b/backup/restore.php index a27342351d7..1aab7dc3c25 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -11,6 +11,7 @@ $stage = optional_param('stage', restore_ui::STAGE_CONFIRM, PARAM_INT); list($context, $course, $cm) = get_context_info_array($contextid); $PAGE->set_url(new moodle_url('/backup/restore.php', array('contextid'=>$contextid))); +navigation_node::override_active_url(new moodle_url('/backup/restore.php', array('contextid'=>$contextid))); $PAGE->set_context($context); $PAGE->set_pagelayout('standard'); @@ -46,7 +47,6 @@ $heading = $course->fullname; $PAGE->set_title($heading.': '.$restore->get_stage_name()); $PAGE->set_heading($heading); -$PAGE->settingsnav->get('courseadmin')->find('restore', navigation_node::TYPE_SETTING)->make_active(); $PAGE->navbar->add($restore->get_stage_name()); $renderer = $PAGE->get_renderer('core','backup');