From 9f8f7d8a2b1f57a843376a46ea96a93d735dbec1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 25 Aug 2023 16:26:57 +0200 Subject: [PATCH] Simplify the usage of options in template listeners --- .../cache/builder/TemplateListenerCodeCacheBuilder.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCodeCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCodeCacheBuilder.class.php index 8664439dfb..693a1367f9 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCodeCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCodeCacheBuilder.class.php @@ -44,7 +44,7 @@ class TemplateListenerCodeCacheBuilder extends AbstractCacheBuilder $options = \explode(',', \strtoupper($templateListener->options)); $options = \array_map(static function ($value) { - return "('" . $value . "'|defined && '" . $value . "'|constant)"; + return "(" . $value . ")"; }, $options); $templateCode .= '(' . \implode(' || ', $options) . ')'; -- 2.20.1