cvs: smarty /libs Smarty_Compiler.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1057246980@cvsserver>
messju		Thu Jul  3 11:43:00 2003 EDT

  Modified files:              
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  i'm so stupid. kick me.
  
  
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.262 smarty/libs/Smarty_Compiler.class.php:1.263
--- smarty/libs/Smarty_Compiler.class.php:1.262	Thu Jul  3 10:12:01 2003
+++ smarty/libs/Smarty_Compiler.class.php	Thu Jul  3 11:43:00 2003
@@ -39,7 +39,7 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.262 2003/07/03 14:12:01 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.263 2003/07/03 15:43:00 messju Exp $ */
 
 /**
  * Template compiling class
@@ -2002,7 +2002,7 @@
     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 @@
     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++)
             . '}\';}';



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.