mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #50072 from nextcloud/backport/49988/stable30
[stable30] fix(settings): show the correct initial locale in Personal info
This commit is contained in:
commit
8cfedc03b5
1 changed files with 1 additions and 1 deletions
|
|
@ -300,8 +300,8 @@ class PersonalInfo implements ISettings {
|
|||
}
|
||||
|
||||
$uid = $user->getUID();
|
||||
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale());
|
||||
$userLang = $this->config->getUserValue($uid, 'core', 'lang', $this->l10nFactory->findLanguage());
|
||||
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale($userLang));
|
||||
$localeCodes = $this->l10nFactory->findAvailableLocales();
|
||||
$userLocale = array_filter($localeCodes, fn ($value) => $userLocaleString === $value['code']);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue