From: Alexander Ebert Date: Fri, 26 Mar 2021 11:36:18 +0000 (+0100) Subject: Permit the use of `array_diff` in templates X-Git-Tag: 5.3.6~45 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aee1ae89b86580c323bcbbbfc00875ab68906698;p=GitHub%2FWoltLab%2FWCF.git Permit the use of `array_diff` in templates If only developers would stop moving business logic into templates… --- 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',