Skip to content

Commit

Permalink
Merge branch 'MDL-59599-master' of https://github.com/Kathrin84/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Jul 9, 2018
2 parents 3143160 + f37c3ec commit 7275922
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/navigationlib.php
Expand Up @@ -2730,7 +2730,12 @@ public function add_course_essentials($coursenode, stdClass $course) {
}
if ($navoptions->grades) {
$url = new moodle_url('/grade/report/index.php', array('id'=>$course->id));
$gradenode = $coursenode->add(get_string('grades'), $url, self::TYPE_SETTING, null, 'grades', new pix_icon('i/grades', ''));
$gradenode = $coursenode->add(get_string('grades'), $url, self::TYPE_SETTING, null,
'grades', new pix_icon('i/grades', ''));
// If the page type matches the grade part, then make the nav drawer grade node (incl. all sub pages) active.
if (strpos($this->page->pagetype, 'grade-') == 0) {
$gradenode->make_active();
}
}

return true;
Expand Down

0 comments on commit 7275922

Please sign in to comment.