mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'wip-MDL-28549-master' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
bdfb2b71b7
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue