Permalink
Browse files

Merge branch 'MDL-59599-35' of https://github.com/Kathrin84/moodle in…

…to MOODLE_35_STABLE
  • Loading branch information...
dmonllao committed Jul 9, 2018
2 parents 2f7aaf1 + 1da4edb commit e336f07cd7c8e0d4432e784a87ecbcd8bdb9b1a5
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/navigationlib.php
@@ -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;

0 comments on commit e336f07

Please sign in to comment.