- bugfix internal rendered_content must be cleared after subtemplate was included

This commit is contained in:
uwe.tews@googlemail.com
2011-03-03 19:37:00 +00:00
parent 78d4e1b2e5
commit 9d1b0abe5c
2 changed files with 2 additions and 1 deletions
@@ -172,7 +172,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {
$_output .= "<?php /* End of included template \"" . $tpl->getTemplateFilepath() . "\" */ ?>\n";
$_output .= "<?php \$_smarty_tpl = array_pop(\$_tpl_stack);?>";
} else {
$_output .= " echo \$_template->getRenderedTemplate();?>";
$_output .= " echo \$_template->getRenderedTemplate(); \$_template->rendered_content = null;?>";
if ($_parent_scope != Smarty::SCOPE_LOCAL) {
$_output .= "<?php \$_template->updateParentVariables($_parent_scope);?>";
}