Add new calendar.default_view pconfig key

This commit is contained in:
Hypolite Petovan 2022-12-17 02:13:33 -05:00
parent 83e34ef8e7
commit cdf180c58d
7 changed files with 20 additions and 2 deletions

View 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'),