From: Matthias Schmidt Date: Thu, 29 Sep 2016 07:25:32 +0000 (+0200) Subject: Support template syntax in category-related language items X-Git-Tag: 3.0.0_Beta_2~75 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=31f40a9e3834c21366c1fe7bc6acb6cfb9bb596a;p=GitHub%2FWoltLab%2FWCF.git Support template syntax in category-related language items --- diff --git a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php index d5f4a56cc3..012a86e448 100644 --- a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php @@ -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); } /**