mirror of
https://github.com/friendica/friendica
synced 2025-04-30 09:44:22 +02:00
Use "toISO6391" instead of "substr"
This commit is contained in:
parent
90e05fd835
commit
a7ab14b3b3
3 changed files with 11 additions and 3 deletions
|
@ -242,7 +242,7 @@ class Temporal
|
|||
// First day of the week (0 = Sunday)
|
||||
$firstDay = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'first_day_of_week', 0);
|
||||
|
||||
$lang = substr(DI::l10n()->getCurrentLang(), 0, 2);
|
||||
$lang = DI::l10n()->toISO6391(DI::l10n()->getCurrentLang());
|
||||
|
||||
// Check if the detected language is supported by the picker
|
||||
if (!in_array($lang,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue