Support template syntax in category-related language items
authorMatthias Schmidt <gravatronics@live.com>
Thu, 29 Sep 2016 07:25:32 +0000 (09:25 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 29 Sep 2016 07:25:36 +0000 (09:25 +0200)
wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php

index d5f4a56cc341e59f20105fc1b9f032b30879edc2..012a86e448cd10ac3682ff2bf8f15039fe3a9fae 100644 (file)
@@ -148,13 +148,13 @@ abstract class AbstractCategoryType extends SingletonFactory implements ICategor
         */
        public function getLanguageVariable($name, $optional = false) {
                if ($this->langVarPrefix) {
-                       $value = WCF::getLanguage()->get($this->langVarPrefix.'.'.$name, true);
+                       $value = WCF::getLanguage()->getDynamicVariable($this->langVarPrefix.'.'.$name, [], true);
                        if ($value) {
                                return $value;
                        }
                }
                
-               return WCF::getLanguage()->get('wcf.category.'.$name, $optional);
+               return WCF::getLanguage()->getDynamicVariable('wcf.category.'.$name, [], $optional);
        }
        
        /**