cvs: smarty /libs/internals core.write_compiled_include.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1133277628@cvsserver> |
messju Tue Nov 29 10:20:28 2005 EDT
Modified files:
/smarty/libs/internals core.write_compiled_include.php
Log:
forgot to update the strings in smarty_core_write_compiled_include()
when chaning the generated code in
Smarty_Compiler::_push_cacheable_state() and
Smarty_Compiler::_pop_cacheable_state()
http://cvs.php.net/diff.php/smarty/libs/internals/core.write_compiled_include.php?r1=1.4&r2=1.5&ty=u
Index: smarty/libs/internals/core.write_compiled_include.php
diff -u smarty/libs/internals/core.write_compiled_include.php:1.4 smarty/libs/internals/core.write_compiled_include.php:1.5
--- smarty/libs/internals/core.write_compiled_include.php:1.4 Thu Jan 27 03:51:21 2005
+++ smarty/libs/internals/core.write_compiled_include.php Tue Nov 29 10:20:27 2005
@@ -15,8 +15,8 @@
function smarty_core_write_compiled_include($params, &$smarty)
{
- $_tag_start = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\';\}';
- $_tag_end = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{/nocache\:(\\2)#(\\3)\}\';\}';
+ $_tag_start = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\'; \};';
+ $_tag_end = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{/nocache\:(\\2)#(\\3)\}\'; \};';
preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',
$params['compiled_content'], $_match_source, PREG_SET_ORDER);
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php