From efe0e4c40c1a80362b55c4929fa752450f10a98d Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sat, 11 Nov 2017 06:44:33 +0100 Subject: [PATCH] fix comment --- libs/sysplugins/smarty_internal_compile_block.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/sysplugins/smarty_internal_compile_block.php b/libs/sysplugins/smarty_internal_compile_block.php index 753e6d8e..db9fc21f 100644 --- a/libs/sysplugins/smarty_internal_compile_block.php +++ b/libs/sysplugins/smarty_internal_compile_block.php @@ -102,7 +102,7 @@ class Smarty_Internal_Compile_Block extends Smarty_Internal_Compile_Shared_Inher } /** - * Compiles code for the {$smarty.foreach.xxx} or {$smarty.section.xxx}tag + * Compiles code for the {$smarty.block.parent} or {$smarty.block.child}tag * * @param array $args array with attributes from parser * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object @@ -191,7 +191,7 @@ class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_Compile_Shared_ if (isset($_assign)) { $output .= "ob_start();\n"; } - $output .= "?>\n"; + $output .= "\n"; $compiler->parser->current_buffer->append_subtree($compiler->parser, new Smarty_Internal_ParseTree_Tag($compiler->parser, $output)); @@ -203,7 +203,7 @@ class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_Compile_Shared_ $output .= "}\n"; $output .= "}\n"; $output .= "/* {/block {$_name}} */\n\n"; - $output .= "?>\n"; + $output .= "\n"; $compiler->parser->current_buffer->append_subtree($compiler->parser, new Smarty_Internal_ParseTree_Tag($compiler->parser, $output)); @@ -224,13 +224,13 @@ class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_Compile_Shared_ $compiler->tag_nocache = $compiler->nocache; $compiler->nocache = $_nocache; $compiler->parser->current_buffer = $_buffer; - $output = "_cache['blockNesting'] === 1) { $output .= "\$_smarty_tpl->inheritance->instanceBlock(\$_smarty_tpl, '$_className', $_name);\n"; } else { $output .= "\$_smarty_tpl->inheritance->instanceBlock(\$_smarty_tpl, '$_className', $_name, \$this->tplIndex);\n"; } - $output .= "?>\n"; + $output .= "\n"; $compiler->_cache['blockNesting']--; if ($compiler->_cache['blockNesting'] === 0) { unset($compiler->_cache['blockNesting']);