From bac7d77cc2b8ffaad067859f4c00fe182732f6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Pavelec?= Date: Tue, 28 Jan 2020 15:11:23 +0100 Subject: [PATCH] fix: "too many shorthand attributes" error when one attr given --- libs/sysplugins/smarty_internal_compilebase.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/sysplugins/smarty_internal_compilebase.php b/libs/sysplugins/smarty_internal_compilebase.php index 2a32e4373..eda6537c4 100644 --- a/libs/sysplugins/smarty_internal_compilebase.php +++ b/libs/sysplugins/smarty_internal_compilebase.php @@ -86,8 +86,7 @@ public function getAttributes($compiler, $attributes) } elseif (isset($this->shorttag_order[ $key ])) { $_indexed_attr[ $this->shorttag_order[ $key ] ] = $mixed; } else { - // too many shorthands - $compiler->trigger_template_error('too many shorthand attributes', null, true); + $_indexed_attr[$key] = $mixed; } // named attribute } else {