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)); }