Loading patches/032-snappy-language-fix.patch 0 → 100644 +17 −0 Original line number Diff line number Diff line From: Avinash Gusain <avinash.gusain.ext@murena.com> Date: Mon, 27 Nov 2023 13:40:00 +0530 Subject: [PATCH] Snappy Language fix This set snappy language same is cloud language --- ./custom_apps/snappymail/lib/ControllerPageController.php 2023-11-27 12:15:41 +++ ./custom_apps/snappymail/lib/ControllerPageController-new.php 2023-11-27 12:36:00 @@ -54,7 +54,8 @@ $oServiceActions = new \RainLoop\ServiceActions($oHttp, $oActions); $sAppJsMin = $oConfig->Get('debug', 'javascript', false) ? '' : '.min'; $sAppCssMin = $oConfig->Get('debug', 'css', false) ? '' : '.min'; - $sLanguage = $oActions->GetLanguage(false); + $userId = \OC::$server->getUserSession()->getUser()->getUID(); + $sLanguage = $this->config->getUserValue($userId, 'core', 'lang', null); $csp = new ContentSecurityPolicy(); $sNonce = $csp->getSnappyMailNonce(); Loading
patches/032-snappy-language-fix.patch 0 → 100644 +17 −0 Original line number Diff line number Diff line From: Avinash Gusain <avinash.gusain.ext@murena.com> Date: Mon, 27 Nov 2023 13:40:00 +0530 Subject: [PATCH] Snappy Language fix This set snappy language same is cloud language --- ./custom_apps/snappymail/lib/ControllerPageController.php 2023-11-27 12:15:41 +++ ./custom_apps/snappymail/lib/ControllerPageController-new.php 2023-11-27 12:36:00 @@ -54,7 +54,8 @@ $oServiceActions = new \RainLoop\ServiceActions($oHttp, $oActions); $sAppJsMin = $oConfig->Get('debug', 'javascript', false) ? '' : '.min'; $sAppCssMin = $oConfig->Get('debug', 'css', false) ? '' : '.min'; - $sLanguage = $oActions->GetLanguage(false); + $userId = \OC::$server->getUserSession()->getUser()->getUID(); + $sLanguage = $this->config->getUserValue($userId, 'core', 'lang', null); $csp = new ContentSecurityPolicy(); $sNonce = $csp->getSnappyMailNonce();