]> git.mjollnir.org Git - moodle.git/commitdiff
navigation MDL-14632 Fixed bug when viewing participants list and incorrect navbar
authorsamhemelryk <samhemelryk>
Thu, 17 Sep 2009 04:08:35 +0000 (04:08 +0000)
committersamhemelryk <samhemelryk>
Thu, 17 Sep 2009 04:08:35 +0000 (04:08 +0000)
lib/navigationlib.php

index 8d87fead271f43c09ef74b3d63d2da8b75825aa5..cc0c41cf6d1b5a6606bf748820fb1441d9f01669 100644 (file)
@@ -1248,7 +1248,8 @@ class global_navigation extends navigation_node {
                     $participantskey = $currentcourse->add(get_string('participants'));
                     $participants = $currentcourse->get($participantskey);
                     if ($participants) {
-                        $url = new moodle_url($CFG->wwwroot.'/user/index.php?contextid='.$this->context->id);
+                        $participants->mainnavonly = true;
+                        $url = new moodle_url($CFG->wwwroot.'/user/index.php?id='.$course->id);
                         $participants->add(get_string('participantslist'), $url, self::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('i/users'));
 
                         require_once($CFG->dirroot.'/blog/lib.php');