update locale in current session on switch

This commit is contained in:
Ulf Gebhardt 2015-04-08 17:58:07 +02:00
parent 248313c005
commit 20593db5d2

View File

@ -10,7 +10,8 @@ class locale {
\SYSTEM\SECURITY\Security::save(self::SESSION_KEY, $lang);
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));
}