MDL-25249 Tidied up calendar variable passing and removed session abuse
This commit is contained in:
@@ -2267,6 +2267,9 @@ class global_navigation extends navigation_node {
|
||||
$coursenode->add(get_string('tags', 'tag'), new moodle_url('/tag/search.php'));
|
||||
}
|
||||
|
||||
// Calendar
|
||||
$calendarurl = new moodle_url('/calendar/view.php', array('view' => 'month'));
|
||||
$coursenode->add(get_string('calendar', 'calendar'), $calendarurl, self::TYPE_CUSTOM, null, 'calendar');
|
||||
|
||||
// View course reports
|
||||
if (has_capability('moodle/site:viewreports', $this->page->context)) { // basic capability for listing of reports
|
||||
|
||||
Reference in New Issue
Block a user