Skip to content
Permalink
Browse files
Merge branch 'MDL-59599-34' of https://github.com/Kathrin84/moodle in…
…to MOODLE_34_STABLE
  • Loading branch information
David Monllao committed Jul 9, 2018
2 parents cb932b8 + f3f44ad commit 4013b661b4b3968bbd49eda51e2c43d63480a92d
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/navigationlib.php
@@ -2724,7 +2724,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 4013b66

Please sign in to comment.