- 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

View File

@@ -1,6 +1,7 @@
===== SVN trunk =====
03/03/2011
- bugfix "smarty" template variable was not recreated when cached templated had expired
- bugfix internal rendered_content must be cleared after subtemplate was included
01/03/2011
- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support

View File

@@ -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);?>";
}