diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 11:45:02 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 11:45:02 +0000 |
| commit | 1a938fd7c378683ce0cde9a4f2b1b247cc3a08fe (patch) | |
| tree | 5c401b28990d5575d7cef9319f836940e394df93 /lib/navigation | |
| parent | b4f60d28c65cf6ce98ed660e1dbb9347958f6875 (diff) | |
TIC 4421, closes #4421
Closes #4421
Merge request studip/studip!3347
Diffstat (limited to 'lib/navigation')
| -rw-r--r-- | lib/navigation/CalendarNavigation.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/navigation/CalendarNavigation.php b/lib/navigation/CalendarNavigation.php index 6b59d02..8df16b3 100644 --- a/lib/navigation/CalendarNavigation.php +++ b/lib/navigation/CalendarNavigation.php @@ -24,7 +24,7 @@ class CalendarNavigation extends Navigation $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'); + $main_url = URLHelper::getURL('dispatch.php/calendar/schedule/index'); } parent::__construct($title, $main_url); @@ -37,12 +37,10 @@ class CalendarNavigation extends Navigation */ public function initSubNavigation() { - global $perm, $atime; - parent::initSubNavigation(); - if (!$perm->have_perm('admin') && Config::get()->SCHEDULE_ENABLE) { - $navigation = new Navigation(_('Stundenplan'), 'dispatch.php/calendar/schedule'); + if (!$GLOBALS['perm']->have_perm('admin') && Config::get()->SCHEDULE_ENABLE) { + $navigation = new Navigation(_('Stundenplan'), 'dispatch.php/calendar/schedule/index'); $this->addSubNavigation('schedule', $navigation); } |
