X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2Flibs%2Finternals%2Fcore.write_compiled_include.php;h=c14adb5f42a8e5db92914dbefcbbfdea9d29edde;hb=9b7c11be09e7a553b26667f673c6315209ddc210;hp=3a719be12981fd3624d33025f618c6aa7ef18076;hpb=95a6ccc277bc41d750ced09fe5a1a779bde342c7;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/libs/internals/core.write_compiled_include.php b/wwwroot/smarty/libs/internals/core.write_compiled_include.php index 3a719be..c14adb5 100644 --- a/wwwroot/smarty/libs/internals/core.write_compiled_include.php +++ b/wwwroot/smarty/libs/internals/core.write_compiled_include.php @@ -15,12 +15,12 @@ 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+)\}\'; endif;'; + $_tag_end = 'if \(\$this->caching && \!\$this->_cache_including\)\: echo \'\{/nocache\:(\\2)#(\\3)\}\'; endif;'; preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us', $params['compiled_content'], $_match_source, PREG_SET_ORDER); - + // no nocache-parts found: done if (count($_match_source)==0) return; @@ -62,7 +62,7 @@ function smarty_core_write_compiled_include($params, &$smarty) $tokens[$i] = '$' . $this_varname; } else { $tokens[$i] = $tokens[$i][1]; - } + } } } $source = implode('', $tokens);