changed git call from https to git readonly
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / core / core.process_compiled_include.php
1 <?php\r
2 /**\r
3  * Smarty plugin\r
4  * @package Smarty\r
5  * @subpackage plugins\r
6  */\r
7 \r
8 /**\r
9  * Replace nocache-tags by results of the corresponding non-cacheable\r
10  * functions and return it\r
11  *\r
12  * @param string $compiled_tpl\r
13  * @param string $cached_source\r
14  * @return string\r
15  */\r
16 \r
17 function smarty_core_process_compiled_include($params, &$smarty)\r
18 {\r
19     $_cache_including = $smarty->_cache_including;\r
20     $smarty->_cache_including = true;\r
21 \r
22     $_return = $params['results'];\r
23     foreach ($smarty->_cache_serials as $_include_file_path=>$_cache_serial) {\r
24         $_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',\r
25                                          array(&$smarty, '_process_compiled_include_callback'),\r
26                                          $_return);\r
27     }\r
28     $smarty->_cache_including = $_cache_including;\r
29     return $_return;\r
30 }\r
31 \r
32 ?>\r