From 3a46916ad918748401f964ba17c40ae52761a112 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Wed, 13 Dec 2023 15:39:53 +0530 Subject: [PATCH] set default lang --- plugins/nextcloud/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nextcloud/index.php b/plugins/nextcloud/index.php index 620d9b571..2a65ee18d 100644 --- a/plugins/nextcloud/index.php +++ b/plugins/nextcloud/index.php @@ -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