From: Matthias Schmidt Date: Mon, 26 Sep 2011 16:00:49 +0000 (+0200) Subject: Language::__toString() now returns languageName property X-Git-Tag: 2.0.0_Beta_1~1769^2~5^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=760629291b152210f9e198412f6bea18ebf2f759;p=GitHub%2FWoltLab%2FWCF.git Language::__toString() now returns languageName property --- diff --git a/wcfsetup/install/files/lib/data/language/Language.class.php b/wcfsetup/install/files/lib/data/language/Language.class.php index 1cf68beb43..def6ea30c2 100644 --- a/wcfsetup/install/files/lib/data/language/Language.class.php +++ b/wcfsetup/install/files/lib/data/language/Language.class.php @@ -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; } /**