diff --git a/lib/navigation/CalendarNavigation.php b/lib/navigation/CalendarNavigation.php index f201d86c78292201e6e4024aa5909ed7b417ff8f..6b59d02d19695125a343179c6a61a2e191d2799c 100644 --- a/lib/navigation/CalendarNavigation.php +++ b/lib/navigation/CalendarNavigation.php @@ -21,7 +21,7 @@ class CalendarNavigation extends Navigation public function __construct() { $title = _('Kalender'); - $main_url = URLHelper::getURL('dispatch.php/calendar/calendar'); + $main_url = URLHelper::getURL('dispatch.php/calendar/calendar', ['defaultDate' => date('Y-m-d')]); if (!$GLOBALS['perm']->have_perm('admin') && Config::get()->SCHEDULE_ENABLE) { $title = _('Stundenplan'); $main_url = URLHelper::getURL('dispatch.php/calendar/schedule'); @@ -47,7 +47,7 @@ class CalendarNavigation extends Navigation } if (Config::get()->CALENDAR_ENABLE) { - $navigation = new Navigation(_('Kalender'), 'dispatch.php/calendar/calendar'); + $navigation = new Navigation(_('Kalender'), 'dispatch.php/calendar/calendar', ['defaultDate' => date('Y-m-d')]); $this->addSubNavigation('calendar', $navigation); } }