From 20593db5d294ae96fed65b6bee2d3a1d660a1934 Mon Sep 17 00:00:00 2001 From: rylon Date: Wed, 8 Apr 2015 17:58:07 +0200 Subject: [PATCH] update locale in current session on switch --- system/locale.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/locale.php b/system/locale.php index efce804..5afee22 100644 --- a/system/locale.php +++ b/system/locale.php @@ -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)); }