From 5c38ba02b0fbb94918be9b9e0b31a578a0f60e35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 8 Oct 2011 14:41:58 +0200 Subject: [PATCH] Fixing dynamic language variables The language-ID seems no longer to be in the array. --- 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 9970a7db41..ae0ca373d9 100644 --- a/wcfsetup/install/files/lib/data/language/Language.class.php +++ b/wcfsetup/install/files/lib/data/language/Language.class.php @@ -120,8 +120,8 @@ class Language extends DatabaseObject { $staticItem = $this->get($item, $optional); if (!$staticItem) return ''; - if (isset($this->dynamicItems[$this->languageID][$item])) { - return WCF::getTPL()->fetchString($this->dynamicItems[$this->languageID][$item], $variables); + if (isset($this->dynamicItems[$item])) { + return WCF::getTPL()->fetchString($this->dynamicItems[$item], $variables); } return $staticItem; -- 2.20.1