From b405b45158610b6efc17cd11032a3c398726147a Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 14 Feb 2022 12:56:57 +0100 Subject: [PATCH] Resolve #205 only when 'Language' setting is empty --- snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php index 332e3f3ab..0cd30f777 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php @@ -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']);