MDL-25249 Tidied up calendar variable passing and removed session abuse

This commit is contained in:
Sam Hemelryk
2011-06-29 14:50:38 +08:00
parent 7fde489dae
commit 797cedc7cf
12 changed files with 461 additions and 686 deletions
+3
View File
@@ -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