Skip to content

Commit

Permalink
Merge branch 'MDL-59827-master' of git://github.com/damyon/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Aug 29, 2017
2 parents d3e6c39 + b34fd2c commit 3eb0d7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions user/index.php
Expand Up @@ -88,6 +88,13 @@
$PAGE->add_body_class('path-user'); // So we can style it independently.
$PAGE->set_other_editing_capability('moodle/course:manageactivities');

// Expand the users node in the settings navigation when it exists because those pages
// are related to this one.
$node = $PAGE->settingsnav->find('users', navigation_node::TYPE_CONTAINER);
if ($node) {
$node->forceopen();
}

echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('participants'));

Expand Down

0 comments on commit 3eb0d7d

Please sign in to comment.