mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
Add check for login language on preference
This commit is contained in:
parent
48c3811339
commit
ae48a89e2b
1 changed files with 3 additions and 1 deletions
|
@ -194,7 +194,9 @@ class UserHandler extends LegacyHandler
|
|||
|
||||
global $sugar_config;
|
||||
|
||||
if (isset($_SESSION['authenticated_user_language'])){
|
||||
$loginLanguage = $this->systemConfigProvider->getSystemConfig('login_language')->getValue() ?? false;
|
||||
|
||||
if (isset($_SESSION['authenticated_user_language']) && isTrue($loginLanguage)) {
|
||||
return $_SESSION['authenticated_user_language'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue