cvs: smarty /libs Smarty_Compiler.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1056985739@cvsserver>
messju		Mon Jun 30 11:09:00 2003 EDT

  Modified files:              
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  re-fixed cacheable_state-handling
  
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.255 smarty/libs/Smarty_Compiler.class.php:1.256
--- smarty/libs/Smarty_Compiler.class.php:1.255	Sun Jun 29 20:07:27 2003
+++ smarty/libs/Smarty_Compiler.class.php	Mon Jun 30 11:08:59 2003
@@ -39,7 +39,7 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.255 2003/06/30 00:07:27 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.256 2003/06/30 15:08:59 messju Exp $ */
 /**
  * Template compiling class
  * @package Smarty
@@ -2001,7 +2001,7 @@
     function _push_cacheable_state($type, $name) {
         $_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4];
         if ($_cacheable
-            || $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



-- 
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.