X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FEvent.php;h=dc818d8f15715055392137f5151ed2e7b78fd88e;hb=a8402109b183e81dad4e5443883dd292df094b86;hp=28e325dbae31601ffbf1a844bc5e55e2e15c83e4;hpb=83e34ef8e7f2e36cd98cfa754e524fcc18b9a5ec;p=friendica.git diff --git a/src/Model/Event.php b/src/Model/Event.php index 28e325dbae..dc818d8f15 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'), @@ -654,7 +656,7 @@ class Event } // Show edit and drop actions only if the user is the owner of the event and the event - // is a real event (no bithdays). + // is a real event (no birthdays). $edit = null; $copy = null; $drop = null;