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.process_compiled_include.php
CommitLineData
51ff3226 1<?php
2/**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 */
7
8/**
9 * Replace nocache-tags by results of the corresponding non-cacheable
10 * functions and return it
11 *
12 * @param string $compiled_tpl
13 * @param string $cached_source
14 * @return string
15 */
16
17function smarty_core_process_compiled_include($params, &$smarty)
18{
19 $_cache_including = $smarty->_cache_including;
20 $smarty->_cache_including = true;
21
22 $_return = $params['results'];
23
24 foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) {
25 $smarty->_include($_include_file_path, true);
26 }
27
9b7c11be 28 foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) {
51ff3226 29 $_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',
30 array(&$smarty, '_process_compiled_include_callback'),
31 $_return);
32 }
33 $smarty->_cache_including = $_cache_including;
34 return $_return;
35}
36
37?>
This page took 0.176197 seconds and 4 git commands to generate.