i'm so stupid. kick me.

This commit is contained in:
messju
2003-07-03 15:43:00 +00:00
parent 309532e8e2
commit 9b5ae9c950

View File

@@ -2002,7 +2002,7 @@ class Smarty_Compiler extends Smarty {
function _push_cacheable_state($type, $name) {
$_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4];
if ($_cacheable
|| 0==$this->_cacheable_state++) return '';
|| 0<$this->_cacheable_state++) return '';
if (!isset($this->_cache_serial)) $this->_cache_serial = md5(uniqid('Smarty'));
$_ret = 'if ($this->caching) { echo \'{nocache:'
. $this->_cache_serial . '#' . $this->_nocache_count
@@ -2020,7 +2020,7 @@ class Smarty_Compiler extends Smarty {
function _pop_cacheable_state($type, $name) {
$_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4];
if ($_cacheable
|| --$this->_cacheable_state>=0) return '';
|| --$this->_cacheable_state>0) return '';
return 'if ($this->caching) { echo \'{/nocache:'
. $this->_cache_serial . '#' . ($this->_nocache_count++)
. '}\';}';