mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fixed off-by-one-error in nocache-tag-handling
This commit is contained in:
@@ -2019,7 +2019,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
function _pop_cacheable_state($type, $name) {
|
function _pop_cacheable_state($type, $name) {
|
||||||
$_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4];
|
$_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4];
|
||||||
if ($_cacheable
|
if ($_cacheable
|
||||||
|| --$this->_cacheable_state>0) return '';
|
|| --$this->_cacheable_state>=0) return '';
|
||||||
return 'if ($this->caching) { echo \'{/nocache:'
|
return 'if ($this->caching) { echo \'{/nocache:'
|
||||||
. $this->_cache_serial . '#' . ($this->_nocache_count++)
|
. $this->_cache_serial . '#' . ($this->_nocache_count++)
|
||||||
. '}\';}';
|
. '}\';}';
|
||||||
|
Reference in New Issue
Block a user