From 6665e58ecfaf4c9e053b396c3a8dd478b14d63b2 Mon Sep 17 00:00:00 2001 From: messju Date: Tue, 29 Nov 2005 15:20:27 +0000 Subject: [PATCH] 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() --- libs/internals/core.write_compiled_include.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/internals/core.write_compiled_include.php b/libs/internals/core.write_compiled_include.php index 5e0b2e0d..3a780941 100644 --- a/libs/internals/core.write_compiled_include.php +++ b/libs/internals/core.write_compiled_include.php @@ -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);