From f672d6a0f5f8c865582b5ea86dfce0896533a1e9 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Thu, 3 Feb 2011 12:28:28 +0100 Subject: [PATCH] Fixed import groups page layout and navigation While working on MDL-26252, I realized that group/import.php page had issues with layout. Side blocks were missing and the breadcrumb navigation broken (leading to a non-existing script and having the link to the current course duplicated). This patch sets the standard layout for the page so that block are displayed, fixes the page position in the navigation tree and the breadcrumb navigation. --- group/import.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/group/import.php b/group/import.php index 12cac87316c..159cd43674e 100644 --- a/group/import.php +++ b/group/import.php @@ -41,13 +41,11 @@ require_capability('moodle/course:managegroups', $context); $strimportgroups = get_string('importgroups', 'core_group'); -/// Print the header -$PAGE->navbar->add($course->shortname, new moodle_url('/course/view.php', array('id'=>$course->id))); -$PAGE->navbar->add(get_string('import'), new moodle_url('/course/import.php', array('id'=>$course->id))); $PAGE->navbar->add($strimportgroups); - +navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $course->id))); $PAGE->set_title("$course->shortname: $strimportgroups"); $PAGE->set_heading($course->fullname); +$PAGE->set_pagelayout('standard'); $returnurl = new moodle_url('/group/index.php', array('id'=>$id));