]> git.mxchange.org Git - friendica.git/commitdiff
make calendar use the default view mode
authorHannes Heute <haheute@posteo.de>
Thu, 1 May 2025 20:40:16 +0000 (22:40 +0200)
committerHannes Heute <haheute@posteo.de>
Thu, 1 May 2025 20:40:16 +0000 (22:40 +0200)
src/Model/Event.php

index 6cb73f4c37e65fe9330785acd60da852f3f506f6..0fcefe48615ade19e7c79718617034f0bc197e1c 100644 (file)
@@ -397,7 +397,7 @@ class Event
        {
                // First day of the week (0 = Sunday).
                $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 [
                        'firstDay'    => $firstDay,