mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix internal rendered_content must be cleared after subtemplate was included
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
===== SVN trunk =====
|
===== SVN trunk =====
|
||||||
03/03/2011
|
03/03/2011
|
||||||
- bugfix "smarty" template variable was not recreated when cached templated had expired
|
- 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
|
01/03/2011
|
||||||
- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support
|
- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support
|
||||||
|
@@ -172,7 +172,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {
|
|||||||
$_output .= "<?php /* End of included template \"" . $tpl->getTemplateFilepath() . "\" */ ?>\n";
|
$_output .= "<?php /* End of included template \"" . $tpl->getTemplateFilepath() . "\" */ ?>\n";
|
||||||
$_output .= "<?php \$_smarty_tpl = array_pop(\$_tpl_stack);?>";
|
$_output .= "<?php \$_smarty_tpl = array_pop(\$_tpl_stack);?>";
|
||||||
} else {
|
} else {
|
||||||
$_output .= " echo \$_template->getRenderedTemplate();?>";
|
$_output .= " echo \$_template->getRenderedTemplate(); \$_template->rendered_content = null;?>";
|
||||||
if ($_parent_scope != Smarty::SCOPE_LOCAL) {
|
if ($_parent_scope != Smarty::SCOPE_LOCAL) {
|
||||||
$_output .= "<?php \$_template->updateParentVariables($_parent_scope);?>";
|
$_output .= "<?php \$_template->updateParentVariables($_parent_scope);?>";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user