mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix do not overwrite 'smarty' template variable when {include ... scope=parent} exits
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
===== SVN trunk =====
|
===== SVN trunk =====
|
||||||
09/0672011
|
16/06/2011
|
||||||
|
- bugfix do not overwrite 'smarty' template variable when {include ... scope=parent} exits
|
||||||
|
|
||||||
|
09/06/2011
|
||||||
- bugfix smarty security_policy issue in plugins {html_image} and {fetch}
|
- bugfix smarty security_policy issue in plugins {html_image} and {fetch}
|
||||||
|
|
||||||
07/06/2011
|
07/06/2011
|
||||||
|
@@ -650,7 +650,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data {
|
|||||||
$has_root = false;
|
$has_root = false;
|
||||||
foreach ($this->tpl_vars as $_key => $_variable) {
|
foreach ($this->tpl_vars as $_key => $_variable) {
|
||||||
$_variable_scope = $this->tpl_vars[$_key]->scope;
|
$_variable_scope = $this->tpl_vars[$_key]->scope;
|
||||||
if ($scope == Smarty::SCOPE_LOCAL && $_variable_scope == Smarty::SCOPE_LOCAL) {
|
if (($scope == Smarty::SCOPE_LOCAL && $_variable_scope == Smarty::SCOPE_LOCAL) || $_key == 'smarty') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (isset($this->parent) && ($scope == Smarty::SCOPE_PARENT || $_variable_scope == Smarty::SCOPE_PARENT)) {
|
if (isset($this->parent) && ($scope == Smarty::SCOPE_PARENT || $_variable_scope == Smarty::SCOPE_PARENT)) {
|
||||||
|
Reference in New Issue
Block a user