mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
- bugfix change from 01.03.2016 will cause $smarty->isCached(..) failure if called multiple time for same template
(forum topic 25935) related to 825aa26079
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
===== 3.1.30-dev ===== (xx.xx.xx)
|
===== 3.1.30-dev ===== (xx.xx.xx)
|
||||||
|
04.03.2016
|
||||||
|
- bugfix change from 01.03.2016 will cause $smarty->isCached(..) failure if called multiple time for same template
|
||||||
|
(forum topic 25935)
|
||||||
|
|
||||||
02.03.2016
|
02.03.2016
|
||||||
- revert autoloader optimizations because of unexplainable warning when using plugins https://github.com/smarty-php/smarty/issues/199
|
- revert autoloader optimizations because of unexplainable warning when using plugins https://github.com/smarty-php/smarty/issues/199
|
||||||
|
|
||||||
|
@@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.30-dev/51';
|
const SMARTY_VERSION = '3.1.30-dev/52';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
@@ -1051,7 +1051,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
if ($this->caching && isset($this->_cache[ 'isCached' ][ $_templateId ])) {
|
if ($this->caching && isset($this->_cache[ 'isCached' ][ $_templateId ])) {
|
||||||
$tpl = $do_clone ? clone $this->_cache[ 'isCached' ][ $_templateId ] :
|
$tpl = $do_clone ? clone $this->_cache[ 'isCached' ][ $_templateId ] :
|
||||||
$this->_cache[ 'isCached' ][ $_templateId ];
|
$this->_cache[ 'isCached' ][ $_templateId ];
|
||||||
$template->tpl_vars = $template->config_vars = array();
|
$tpl->tpl_vars = $tpl->config_vars = array();
|
||||||
} else if (!$do_clone && isset($this->_cache[ 'tplObjects' ][ $_templateId ])) {
|
} else if (!$do_clone && isset($this->_cache[ 'tplObjects' ][ $_templateId ])) {
|
||||||
$tpl = clone $this->_cache[ 'tplObjects' ][ $_templateId ];
|
$tpl = clone $this->_cache[ 'tplObjects' ][ $_templateId ];
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user