From 760629291b152210f9e198412f6bea18ebf2f759 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 26 Sep 2011 18:00:49 +0200 Subject: [PATCH] Language::__toString() now returns languageName property --- wcfsetup/install/files/lib/data/language/Language.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /** -- 2.20.1