diff --git a/change_log.txt b/change_log.txt index cb7a7347..e19d526a 100644 --- a/change_log.txt +++ b/change_log.txt @@ -3,6 +3,7 @@ - bugfix $smarty_>debugging = true; did E_NOTICE messages when {eval} tag was used https://github.com/smarty-php/smarty/issues/266 - bugfix Class 'Smarty_Internal_Runtime_ValidateCompiled' not found when upgrading from some older Smarty versions with existing compiled or cached template files https://github.com/smarty-php/smarty/issues/269 + - optimization remove unneeded call to update acopes when {assign} scope and template scope was local (default) ===== 3.1.30 ===== (07.08.2016) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 7702e02e..e7b071e4 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.31-dev/3'; + const SMARTY_VERSION = '3.1.31-dev/4'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index e1732ca4..01eedb8a 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -398,7 +398,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase $this->tpl_vars[ $varName ] = new Smarty_Variable($value, $nocache || $this->isRenderingCache); } if ($scope >= 0) { - if (isset($scope) || isset($this->scope)) { + if ($scope > 0 || $this->scope > 0) { $this->smarty->ext->_updateScope->_updateScope($this, $varName, $scope); } }