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