diff --git a/change_log.txt b/change_log.txt index 010efe13..8c94f131 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== trunk ===== +22.05.2012 +- bugfix recursive {include} within {section} did fail (Smarty developer group) + 12.05.2012 - bugfix {html_options} did not properly escape values (Issue 98) diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index 1a75fd4f..de9d54cf 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -266,6 +266,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase { // get variables from calling scope if ($parent_scope == Smarty::SCOPE_LOCAL) { $tpl->tpl_vars = $this->tpl_vars; + $tpl->tpl_vars['smarty'] = clone $this->tpl_vars['smarty']; } elseif ($parent_scope == Smarty::SCOPE_PARENT) { $tpl->tpl_vars = &$this->tpl_vars; } elseif ($parent_scope == Smarty::SCOPE_GLOBAL) { @@ -305,6 +306,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase { // get variables from calling scope if ($parent_scope == Smarty::SCOPE_LOCAL ) { $tpl->tpl_vars = $this->tpl_vars; + $tpl->tpl_vars['smarty'] = clone $this->tpl_vars['smarty']; } elseif ($parent_scope == Smarty::SCOPE_PARENT) { $tpl->tpl_vars = &$this->tpl_vars; } elseif ($parent_scope == Smarty::SCOPE_GLOBAL) {