Space to separate "&&" so that all "&$var" can be made into "$var" later
[openemr.git] / library / core / core.process_compiled_include.php
blob3e1d4c15a038f3c4b5d7ee87ad947744948903ef
1 <?php
2 /**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 */
8 /**
9 * Replace nocache-tags by results of the corresponding non-cacheable
10 * functions and return it
12 * @param string $compiled_tpl
13 * @param string $cached_source
14 * @return string
17 function smarty_core_process_compiled_include($params, &$smarty)
19 $_cache_including = $smarty->_cache_including;
20 $smarty->_cache_including = true;
22 $_return = $params['results'];
23 foreach ($smarty->_cache_serials as $_include_file_path=>$_cache_serial) {
24 $_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',
25 array(&$smarty, '_process_compiled_include_callback'),
26 $_return);
28 $smarty->_cache_including = $_cache_including;
29 return $_return;