From 9d1b0abe5ccf98f35520f9b012994ff2e91bcbde Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Thu, 3 Mar 2011 19:37:00 +0000 Subject: [PATCH] - bugfix internal rendered_content must be cleared after subtemplate was included --- change_log.txt | 1 + libs/sysplugins/smarty_internal_compile_include.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index e3d96448..019811a8 100644 --- a/change_log.txt +++ b/change_log.txt @@ -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 diff --git a/libs/sysplugins/smarty_internal_compile_include.php b/libs/sysplugins/smarty_internal_compile_include.php index 8fd4002e..a3b3c944 100644 --- a/libs/sysplugins/smarty_internal_compile_include.php +++ b/libs/sysplugins/smarty_internal_compile_include.php @@ -172,7 +172,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase { $_output .= "getTemplateFilepath() . "\" */ ?>\n"; $_output .= ""; } else { - $_output .= " echo \$_template->getRenderedTemplate();?>"; + $_output .= " echo \$_template->getRenderedTemplate(); \$_template->rendered_content = null;?>"; if ($_parent_scope != Smarty::SCOPE_LOCAL) { $_output .= "updateParentVariables($_parent_scope);?>"; }