Permit the use of `array_diff` in templates
authorAlexander Ebert <ebert@woltlab.com>
Fri, 26 Mar 2021 11:36:18 +0000 (12:36 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 26 Mar 2021 11:36:18 +0000 (12:36 +0100)
If only developers would stop moving business logic into templates…

wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index efc9ab169a9cc1f76772fb2e0c338365c6706e3d..0193cde72175d4a698a77b98b781880f989f46d5 100644 (file)
@@ -44,6 +44,7 @@ class TemplateScriptingCompiler {
         */
        protected $enterpriseFunctions = [
                'addslashes',
+               'array_diff',
                'array_fill',
                'array_keys',
                'array_pop',