mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Add new calendar.default_view pconfig key
This commit is contained in:
parent
83e34ef8e7
commit
cdf180c58d
7 changed files with 20 additions and 2 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue