From aee1ae89b86580c323bcbbbfc00875ab68906698 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 26 Mar 2021 12:36:18 +0100 Subject: [PATCH] Permit the use of `array_diff` in templates MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If only developers would stop moving business logic into templates… --- .../lib/system/template/TemplateScriptingCompiler.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index efc9ab169a..0193cde721 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -44,6 +44,7 @@ class TemplateScriptingCompiler { */ protected $enterpriseFunctions = [ 'addslashes', + 'array_diff', 'array_fill', 'array_keys', 'array_pop', -- 2.20.1