Merge pull request #14915 from haheute/calendar-default-view-mode

Make the calendar use the default view mode
This commit is contained in:
Philipp 2025-05-03 21:34:29 +02:00 committed by GitHub
commit 024b136cdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,