Commit bdfb2b71 authored by Aparup Banerjee's avatar Aparup Banerjee
Browse files

Merge branch 'wip-MDL-28549-master' of git://github.com/samhemelryk/moodle

parents e6d80c1d e7f9b7ab
......@@ -2349,9 +2349,11 @@ 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');
if (isloggedin()) {
// 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment