From: Alexander Ebert Date: Fri, 20 Mar 2015 14:30:15 +0000 (+0100) Subject: Properly purging languageID from session variables on login/logout X-Git-Tag: 2.1.2~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=02eafee6f8ea008e11372a7462aa4048fe51e96a;p=GitHub%2FWoltLab%2FWCF.git Properly purging languageID from session variables on login/logout --- 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'); }