From: Tim Düsterhus Date: Sat, 8 Oct 2011 12:41:58 +0000 (+0200) Subject: Fixing dynamic language variables X-Git-Tag: 2.0.0_Beta_1~1718^2~4^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5c38ba02b0fbb94918be9b9e0b31a578a0f60e35;p=GitHub%2FWoltLab%2FWCF.git Fixing dynamic language variables The language-ID seems no longer to be in the array. --- 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;