X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FEvent.php;h=ca22c32ac6df506e350f7f4246f07036fd6eafc9;hb=9627af924a0ad1fe305881b0febc2f22ab51524a;hp=28e325dbae31601ffbf1a844bc5e55e2e15c83e4;hpb=83e34ef8e7f2e36cd98cfa754e524fcc18b9a5ec;p=friendica.git diff --git a/src/Model/Event.php b/src/Model/Event.php index 28e325dbae..ca22c32ac6 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -1,6 +1,6 @@ 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'),