Skip to content

Commit

Permalink
navigation MDL-14632 Fixed bug when viewing participants list and inc…
Browse files Browse the repository at this point in the history
…orrect navbar
  • Loading branch information
samhemelryk committed Sep 17, 2009
1 parent 6248ce6 commit 7856699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/navigationlib.php
Expand Up @@ -1248,7 +1248,8 @@ protected function load_course(&$keys, $course=null) {
$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');
Expand Down

0 comments on commit 7856699

Please sign in to comment.