Adds missing SessionHandler::setLanguageID() method
authorMatthias Schmidt <gravatronics@live.com>
Fri, 29 Jun 2012 17:22:13 +0000 (19:22 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 29 Jun 2012 17:22:13 +0000 (19:22 +0200)
Used in WCF::initLanguage()

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index af23c2e1ef47ef9b27aaba9dbcb4422ca4cc158c..7b4a0ab5ae62c3de9692bf02c5a3ed123b00abad 100644 (file)
@@ -543,7 +543,7 @@ class SessionHandler extends SingletonFactory {
        }
        
        /**
-        * Returns currently active language id
+        * Returns currently active language id.
         *
         * @return      integer
         */     
@@ -551,6 +551,15 @@ class SessionHandler extends SingletonFactory {
                return $this->languageID;
        }
        
+       /**
+        * Sets the currently active language id.
+        *
+        * @param       integer         $languageID
+        */     
+       public function setLanguageID($languageID) {
+               $this->languageID = $languageID;
+       }
+       
        /**
         * Resets session-specific storage data.
         *