Allow template scripting in acl option labels
authorMatthias Schmidt <gravatronics@live.com>
Sun, 6 Aug 2017 08:46:26 +0000 (10:46 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 6 Aug 2017 08:46:26 +0000 (10:46 +0200)
wcfsetup/install/files/lib/system/acl/ACLHandler.class.php

index 84c875cdbbf5f17516dbe09f7cc5a3d60d6f14cb..bc225d6a2b36f064f3093d02302cb5de8983fc42 100644 (file)
@@ -250,7 +250,7 @@ class ACLHandler extends SingletonFactory {
                                foreach ($optionList as $option) {
                                        $data['options'][$option->optionID] = [
                                                'categoryName' => $option->categoryName,
-                                               'label' => WCF::getLanguage()->get('wcf.acl.option.'.$objectType->objectType.'.'.$option->optionName),
+                                               'label' => WCF::getLanguage()->getDynamicVariable('wcf.acl.option.'.$objectType->objectType.'.'.$option->optionName),
                                                'optionName' => $option->optionName
                                        ];