mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
navigation MDL-14632 Fixed bug when viewing participants list and incorrect navbar
This commit is contained in:
parent
6248ce6384
commit
785669995e
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user