make calendar use the default view mode

This commit is contained in:
Hannes Heute 2025-05-01 22:40:16 +02:00
parent d1b8f31fe8
commit a784428f85

View file

@ -397,7 +397,7 @@ class Event
{ {
// First day of the week (0 = Sunday). // First day of the week (0 = Sunday).
$firstDay = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'first_day_of_week') ?? 0; $firstDay = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'first_day_of_week') ?? 0;
$defaultView = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'defaultView') ?? 'month'; $defaultView = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'default_view') ?? 'month';
return [ return [
'firstDay' => $firstDay, 'firstDay' => $firstDay,