- 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
This commit is contained in:
uwetews
2017-05-21 17:14:30 +02:00
parent 4fd1f7684e
commit 28688d5ce7

View File

@@ -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}')":')');
}
/**