mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 09:03:48 +08:00
set default lang
This commit is contained in:
parent
184d3fe7d6
commit
3a46916ad9
1 changed files with 2 additions and 2 deletions
|
@ -254,8 +254,8 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
}
|
||||
$user = \OC::$server->getUserSession()->getUser();
|
||||
$userId = $user->getUID();
|
||||
$userLang = \OC::$server->getConfig()->getUserValue($userId, 'core', 'lang');
|
||||
$sLanguage = $this->determineLocale($langCode,$aResultLang['LANGS_NAMES_EN']);
|
||||
$userLang = \OC::$server->getConfig()->getUserValue($userId, 'core', 'lang','en');
|
||||
$sLanguage = $this->determineLocale($userLang,$aResultLang['LANGS_NAMES_EN']);
|
||||
// Check if $sLanguage is null
|
||||
if ($sLanguage === null) {
|
||||
$sLanguage = 'en'; // Assign 'en' if $sLanguage is null
|
||||
|
|
Loading…
Reference in a new issue