Language::__toString() now returns languageName property
authorMatthias Schmidt <gravatronics@live.com>
Mon, 26 Sep 2011 16:00:49 +0000 (18:00 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 26 Sep 2011 16:00:49 +0000 (18:00 +0200)
wcfsetup/install/files/lib/data/language/Language.class.php

index 1cf68beb43c9a9da7a4d24ecafffac2b97ce6f29..def6ea30c21e48a37269235e24cdc7189f94b1c9 100644 (file)
@@ -50,12 +50,12 @@ class Language extends DatabaseObject {
        public $packageID = PACKAGE_ID;
        
        /**
-        * Returns the name of this language in the language of the active user.
+        * Returns the name of this language.
         * 
         * @return      string
         */
        public function __toString() {
-               return WCF::getLanguage()->get('wcf.global.language.'.$this->languageCode);
+               return $this->languageName;
        }
        
        /**