diff --git a/group/autogroup.php b/group/autogroup.php index 64cdfd35ef8..e570ccc87a9 100644 --- a/group/autogroup.php +++ b/group/autogroup.php @@ -50,6 +50,11 @@ $strgroups = get_string('groups'); $strparticipants = get_string('participants'); $strautocreategroups = get_string('autocreategroups', 'group'); +$PAGE->set_title($strgroups); +$PAGE->set_heading($course->fullname. ': '.$strgroups); +$PAGE->set_pagelayout('standard'); +navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $courseid))); + // Print the page and form $preview = ''; $error = ''; @@ -233,9 +238,6 @@ $PAGE->navbar->add($strparticipants, new moodle_url('/user/index.php', array('id $PAGE->navbar->add($strgroups, new moodle_url('/group/index.php', array('id'=>$courseid))); $PAGE->navbar->add($strautocreategroups); -/// Print header -$PAGE->set_title($strgroups); -$PAGE->set_heading($course->fullname. ': '.$strgroups); echo $OUTPUT->header(); echo $OUTPUT->heading($strautocreategroups); diff --git a/group/delete.php b/group/delete.php index b58bb0c0420..88430a54ead 100644 --- a/group/delete.php +++ b/group/delete.php @@ -32,6 +32,7 @@ $groupids = required_param('groups', PARAM_SEQUENCE); $confirm = optional_param('confirm', 0, PARAM_BOOL); $PAGE->set_url('/group/delete.php', array('courseid'=>$courseid,'groups'=>$groupids)); +$PAGE->set_pagelayout('standard'); // Make sure course is OK and user has access to manage groups if (!$course = $DB->get_record('course', array('id' => $courseid))) { diff --git a/group/group.php b/group/group.php index 4e0d8b0ca04..5619c351794 100644 --- a/group/group.php +++ b/group/group.php @@ -74,6 +74,12 @@ require_login($course); $context = context_course::instance($course->id); require_capability('moodle/course:managegroups', $context); +$strgroups = get_string('groups'); +$PAGE->set_title($strgroups); +$PAGE->set_heading($course->fullname . ': '.$strgroups); +$PAGE->set_pagelayout('standard'); +navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $course->id))); + $returnurl = $CFG->wwwroot.'/group/index.php?id='.$course->id.'&group='.$id; // Prepare the description editor: We do support files for group descriptions @@ -121,8 +127,6 @@ $PAGE->navbar->add($strgroups, new moodle_url('/group/index.php', array('id'=>$c $PAGE->navbar->add($strheading); /// Print header -$PAGE->set_title($strgroups); -$PAGE->set_heading($course->fullname . ': '.$strgroups); echo $OUTPUT->header(); echo '