mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-09 22:48:28 +03:00
Bugfix: use detected language on first login
This commit is contained in:
parent
a8e6aaada6
commit
4fdfd54f87
1 changed files with 4 additions and 3 deletions
|
|
@ -968,7 +968,9 @@ class Actions
|
|||
|
||||
if ($oSettings instanceof Settings) {
|
||||
if ($oConfig->Get('webmail', 'allow_languages_on_settings', true)) {
|
||||
$sLanguage = (string)$oSettings->GetConf('Language', $sLanguage);
|
||||
$sLanguage = (string)$oSettings->GetConf('Language',
|
||||
$oConfig->Get('login', 'determine_user_language', true) ? $UserLanguageRaw : $sLanguage
|
||||
);
|
||||
}
|
||||
|
||||
$aResult['EditorDefaultType'] = (string)$oSettings->GetConf('EditorDefaultType', $aResult['EditorDefaultType']);
|
||||
|
|
@ -1001,8 +1003,7 @@ class Actions
|
|||
}
|
||||
}
|
||||
else {
|
||||
if ($oConfig->Get('login', 'allow_languages_on_login', true)
|
||||
&& $oConfig->Get('login', 'determine_user_language', true)) {
|
||||
if ($oConfig->Get('login', 'allow_languages_on_login', true) && $oConfig->Get('login', 'determine_user_language', true)) {
|
||||
$sLanguage = $this->ValidateLanguage($UserLanguageRaw, $sLanguage, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue