navigation MDL-14632 Fixed bug when viewing participants list and incorrect navbar

This commit is contained in:
samhemelryk 2009-09-17 04:08:35 +00:00
parent 6248ce6384
commit 785669995e

View 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');