mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 02:03:31 +02:00
- improvement rework of 'scope' attribute handling see see NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/194
https://github.com/smarty-php/smarty/issues/186 https://github.com/smarty-php/smarty/issues/179
This commit is contained in:
@@ -383,8 +383,10 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase
|
||||
} else {
|
||||
$this->tpl_vars[ $varName ] = new Smarty_Variable($value, $nocache || $this->isRenderingCache);
|
||||
}
|
||||
if (isset($scope) || isset($this->scope)) {
|
||||
$this->smarty->ext->_updateScope->_updateScope($this, $varName, $scope);
|
||||
if ($scope >= 0) {
|
||||
if (isset($scope) || isset($this->scope)) {
|
||||
$this->smarty->ext->_updateScope->_updateScope($this, $varName, $scope);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user