- bugfix recursive {include} within {section} did fail (Smarty developer group)

This commit is contained in:
uwe.tews@googlemail.com
2012-05-22 21:00:47 +00:00
parent b27fc84447
commit bc2622bf94
2 changed files with 5 additions and 0 deletions

View File

@@ -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)

View File

@@ -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) {