From 02eafee6f8ea008e11372a7462aa4048fe51e96a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 20 Mar 2015 15:30:15 +0100 Subject: [PATCH] Properly purging languageID from session variables on login/logout --- .../install/files/lib/system/session/SessionHandler.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 093238cfc6..2e72d28c32 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -713,6 +713,9 @@ class SessionHandler extends SingletonFactory { $this->languageID = $this->user->languageID; $this->styleID = $this->user->styleID; + // in some cases the language id can be stuck in the session variables + $this->unregister('languageID'); + EventHandler::getInstance()->fireAction($this, 'afterChangeUser'); } -- 2.20.1