From: samhemelryk Date: Tue, 8 Sep 2009 09:07:20 +0000 (+0000) Subject: navigation MDL-20235 Ignored active path for site course when in user context X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ee8aca27816601b918308d8386af5128e507b355;p=moodle.git navigation MDL-20235 Ignored active path for site course when in user context --- diff --git a/user/index.php b/user/index.php index d0f8949417..eaf98ff4e7 100644 --- a/user/index.php +++ b/user/index.php @@ -158,6 +158,10 @@ $isseparategroups = ($course->groupmode == SEPARATEGROUPS and !has_capability('moodle/site:accessallgroups', $context)); + if ($course->id===SITEID) { + $PAGE->navbar->ignore_active(); + } + $PAGE->navbar->add(get_string('participants')); $PAGE->set_title("$course->shortname: ".get_string('participants')); $PAGE->set_heading($course->fullname); diff --git a/user/view.php b/user/view.php index 509d2351ba..37e07871e7 100644 --- a/user/view.php +++ b/user/view.php @@ -78,7 +78,9 @@ if (has_capability('moodle/course:viewparticipants', $coursecontext) || has_capability('moodle/site:viewparticipants', $systemcontext)) { $link = new moodle_url($CFG->wwwroot."/user/index.php", array('id'=>$course->id)); } - $PAGE->navbar->ignore_active(); + if ($course->id===SITEID) { + $PAGE->navbar->ignore_active(); + } $PAGE->navbar->add($strparticipants, $link); /// If the user being shown is not ourselves, then make sure we are allowed to see them!