Fixing dynamic language variables
authorTim Düsterhus <timwolla@arcor.de>
Sat, 8 Oct 2011 12:41:58 +0000 (14:41 +0200)
committerTim Düsterhus <timwolla@arcor.de>
Sat, 8 Oct 2011 12:42:40 +0000 (14:42 +0200)
The language-ID seems no longer to be in the array.

wcfsetup/install/files/lib/data/language/Language.class.php

index 9970a7db41d47da38a6f34d7c5bffe45d46b5d35..ae0ca373d904fb960e85f60e8404e2cffbe9f0dc 100644 (file)
@@ -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;