[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-cvs
Subject:    [SMARTY-CVS] cvs: smarty /libs Smarty_Compiler.class.php
From:       "Messju Mohr" <messju () php ! net>
Date:       2003-06-30 15:09:00
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic