mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix recursive {include} within {section} did fail (Smarty developer group)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
22.05.2012
|
||||||
|
- bugfix recursive {include} within {section} did fail (Smarty developer group)
|
||||||
|
|
||||||
12.05.2012
|
12.05.2012
|
||||||
- bugfix {html_options} did not properly escape values (Issue 98)
|
- bugfix {html_options} did not properly escape values (Issue 98)
|
||||||
|
|
||||||
|
@@ -266,6 +266,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase {
|
|||||||
// get variables from calling scope
|
// get variables from calling scope
|
||||||
if ($parent_scope == Smarty::SCOPE_LOCAL) {
|
if ($parent_scope == Smarty::SCOPE_LOCAL) {
|
||||||
$tpl->tpl_vars = $this->tpl_vars;
|
$tpl->tpl_vars = $this->tpl_vars;
|
||||||
|
$tpl->tpl_vars['smarty'] = clone $this->tpl_vars['smarty'];
|
||||||
} elseif ($parent_scope == Smarty::SCOPE_PARENT) {
|
} elseif ($parent_scope == Smarty::SCOPE_PARENT) {
|
||||||
$tpl->tpl_vars = &$this->tpl_vars;
|
$tpl->tpl_vars = &$this->tpl_vars;
|
||||||
} elseif ($parent_scope == Smarty::SCOPE_GLOBAL) {
|
} elseif ($parent_scope == Smarty::SCOPE_GLOBAL) {
|
||||||
@@ -305,6 +306,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase {
|
|||||||
// get variables from calling scope
|
// get variables from calling scope
|
||||||
if ($parent_scope == Smarty::SCOPE_LOCAL ) {
|
if ($parent_scope == Smarty::SCOPE_LOCAL ) {
|
||||||
$tpl->tpl_vars = $this->tpl_vars;
|
$tpl->tpl_vars = $this->tpl_vars;
|
||||||
|
$tpl->tpl_vars['smarty'] = clone $this->tpl_vars['smarty'];
|
||||||
} elseif ($parent_scope == Smarty::SCOPE_PARENT) {
|
} elseif ($parent_scope == Smarty::SCOPE_PARENT) {
|
||||||
$tpl->tpl_vars = &$this->tpl_vars;
|
$tpl->tpl_vars = &$this->tpl_vars;
|
||||||
} elseif ($parent_scope == Smarty::SCOPE_GLOBAL) {
|
} elseif ($parent_scope == Smarty::SCOPE_GLOBAL) {
|
||||||
|
Reference in New Issue
Block a user