]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Event.php
Avoid return type exeption in HTTPSignature->post
[friendica.git] / src / Model / Event.php
index 28e325dbae31601ffbf1a844bc5e55e2e15c83e4..4e7a6a86105771c750a52c23ada775b8bda9eb2a 100644 (file)
@@ -413,9 +413,11 @@ 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';
 
                return [
                        'firstDay'    => $firstDay,
+                       'defaultView' => $defaultView,
                        'allday'      => DI::l10n()->t('all-day'),
 
                        'Sun' => DI::l10n()->t('Sun'),