GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Smarty 2.6.26 (June 18th, 2009), we should update to Smarty 3.x (current...
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
smarty
/
libs
/
internals
/
core.write_compiled_include.php
diff --git
a/wwwroot/smarty/libs/internals/core.write_compiled_include.php
b/wwwroot/smarty/libs/internals/core.write_compiled_include.php
index 3a719be12981fd3624d33025f618c6aa7ef18076..c14adb5f42a8e5db92914dbefcbbfdea9d29edde 100644
(file)
--- 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)
{
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);
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;
// 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];
$tokens[$i] = '$' . $this_varname;
} else {
$tokens[$i] = $tokens[$i][1];
- }
+ }
}
}
$source = implode('', $tokens);
}
}
$source = implode('', $tokens);
This page took
0.159138 seconds
and
4
git commands to generate.