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

This commit is contained in:
David Monllao
2018-07-09 12:00:10 +02:00
+6 -1
View File
@@ -2730,7 +2730,12 @@ class global_navigation extends navigation_node {
}
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;