From 31f40a9e3834c21366c1fe7bc6acb6cfb9bb596a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 29 Sep 2016 09:25:32 +0200 Subject: [PATCH] Support template syntax in category-related language items --- .../files/lib/system/category/AbstractCategoryType.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /** -- 2.20.1