cvs: smarty /libs Smarty_Compiler.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1057136487@cvsserver> |
messju Wed Jul 2 05:01:27 2003 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
fixed off-by-one-error in nocache-tag-handling
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.258 smarty/libs/Smarty_Compiler.class.php:1.259
--- smarty/libs/Smarty_Compiler.class.php:1.258 Mon Jun 30 18:13:00 2003
+++ smarty/libs/Smarty_Compiler.class.php Wed Jul 2 05:01:26 2003
@@ -39,7 +39,7 @@
* @package Smarty
*/
-/* $Id: Smarty_Compiler.class.php,v 1.258 2003/06/30 22:13:00 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.259 2003/07/02 09:01:26 messju Exp $ */
/**
* Template compiling class
* @package Smarty
@@ -2019,7 +2019,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