From 28688d5ce7c673e5c2a450dc4236e53f0244e059 Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 21 May 2017 17:14:30 +0200 Subject: [PATCH] - new feature The named capture buffers can now be accessed also as array See NEWS_FEATURES.txt https://github.com/smarty-php/smarty/issues/366 fixed bug in above change --- libs/sysplugins/smarty_internal_compile_capture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_compile_capture.php b/libs/sysplugins/smarty_internal_compile_capture.php index 73c8a2ce..564b1f63 100644 --- a/libs/sysplugins/smarty_internal_compile_capture.php +++ b/libs/sysplugins/smarty_internal_compile_capture.php @@ -49,7 +49,7 @@ class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase if (!$name) { //$compiler->trigger_template_error("missing or illegal \$smarty.{$tag} name attribute", null, true); } - return '$_smarty_tpl->smarty->ext->_capture->getBuffer($_smarty_tpl'.(isset($name)?"'{$name}')":')'); + return '$_smarty_tpl->smarty->ext->_capture->getBuffer($_smarty_tpl'.(isset($name)?", '{$name}')":')'); } /**