update locale in current session on switch
This commit is contained in:
parent
248313c005
commit
20593db5d2
@ -10,7 +10,8 @@ class locale {
|
|||||||
|
|
||||||
\SYSTEM\SECURITY\Security::save(self::SESSION_KEY, $lang);
|
\SYSTEM\SECURITY\Security::save(self::SESSION_KEY, $lang);
|
||||||
if(\SYSTEM\SECURITY\Security::isLoggedIn()){
|
if(\SYSTEM\SECURITY\Security::isLoggedIn()){
|
||||||
$user = \SYSTEM\SECURITY\Security::getUser();
|
$user = \SYSTEM\SECURITY\Security::getUser();
|
||||||
|
$user->locale = $lang;
|
||||||
\SYSTEM\DBD\SYS_LOCALE_SET_LOCALE::Q1(array($lang, $user->id));
|
\SYSTEM\DBD\SYS_LOCALE_SET_LOCALE::Q1(array($lang, $user->id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user