mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-28 02:21:06 +08:00
Resolve #205 only when 'Language' setting is empty
This commit is contained in:
parent
af959e3631
commit
b405b45158
1 changed files with 5 additions and 3 deletions
|
@ -848,11 +848,13 @@ class Actions
|
|||
$aResult['ReplySameFolder'] = (bool)$oSettingsLocal->GetConf('ReplySameFolder', $aResult['ReplySameFolder']);
|
||||
}
|
||||
|
||||
if ($oConfig->Get('login', 'determine_user_language', true)) {
|
||||
$sLanguage = $this->ValidateLanguage($UserLanguageRaw, $sLanguage, false);
|
||||
}
|
||||
|
||||
if ($oSettings instanceof Settings) {
|
||||
if ($oConfig->Get('webmail', 'allow_languages_on_settings', true)) {
|
||||
$sLanguage = (string)$oSettings->GetConf('Language',
|
||||
$oConfig->Get('login', 'determine_user_language', true) ? $UserLanguageRaw : $sLanguage
|
||||
);
|
||||
$sLanguage = (string) $oSettings->GetConf('Language', $sLanguage);
|
||||
}
|
||||
|
||||
$aResult['EditorDefaultType'] = (string)$oSettings->GetConf('EditorDefaultType', $aResult['EditorDefaultType']);
|
||||
|
|
Loading…
Reference in a new issue