From 2d2d0525573363a3904026d0fe6490776b449ac3 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Sat, 21 Jan 2023 00:03:08 +0100 Subject: [PATCH] Fix default plugin handler --- src/Compiler/Template.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Compiler/Template.php b/src/Compiler/Template.php index 0c8a49b5..8f37deb6 100644 --- a/src/Compiler/Template.php +++ b/src/Compiler/Template.php @@ -1158,15 +1158,7 @@ class Template extends BaseCompiler { // the default plugin handler is a handler of last resort, it may also handle not specifically registered tags. if ($callback = $this->getPluginFromDefaultHandler($base_tag, Smarty::PLUGIN_COMPILER)) { $tagCompiler = new \Smarty\Compile\Tag\BCPluginWrapper($callback); - $new_args = []; - foreach ($args as $key => $mixed) { - if (is_array($mixed)) { - $new_args = array_merge($new_args, $mixed); - } else { - $new_args[$key] = $mixed; - } - } - return $tagCompiler->compile($new_args, $this, $parameter); + return $tagCompiler->compile($args, $this, $parameter); } if ($this->getPluginFromDefaultHandler($base_tag, Smarty::PLUGIN_FUNCTION)) {