mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'wip-MDL-28549-master' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
bdfb2b71b7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user