Blame www/smarty/internals/core.process_compiled_include.php
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
/**
|
|
Chris PeBenito |
696b41 |
* Smarty plugin
|
|
Chris PeBenito |
696b41 |
* @package Smarty
|
|
Chris PeBenito |
696b41 |
* @subpackage plugins
|
|
Chris PeBenito |
696b41 |
*/
|
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
/**
|
|
Chris PeBenito |
696b41 |
* Replace nocache-tags by results of the corresponding non-cacheable
|
|
Chris PeBenito |
696b41 |
* functions and return it
|
|
Chris PeBenito |
696b41 |
*
|
|
Chris PeBenito |
696b41 |
* @param string $compiled_tpl
|
|
Chris PeBenito |
696b41 |
* @param string $cached_source
|
|
Chris PeBenito |
696b41 |
* @return string
|
|
Chris PeBenito |
696b41 |
*/
|
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
function smarty_core_process_compiled_include($params, &$smarty)
|
|
Chris PeBenito |
696b41 |
{
|
|
Chris PeBenito |
696b41 |
$_cache_including = $smarty->_cache_including;
|
|
Chris PeBenito |
696b41 |
$smarty->_cache_including = true;
|
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
$_return = $params['results'];
|
|
Chris PeBenito |
696b41 |
foreach ($smarty->_cache_serials as $_include_file_path=>$_cache_serial) {
|
|
Chris PeBenito |
696b41 |
$_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',
|
|
Chris PeBenito |
696b41 |
array(&$smarty, '_process_compiled_include_callback'),
|
|
Chris PeBenito |
696b41 |
$_return);
|
|
Chris PeBenito |
696b41 |
}
|
|
Chris PeBenito |
696b41 |
$smarty->_cache_including = $_cache_including;
|
|
Chris PeBenito |
696b41 |
return $_return;
|
|
Chris PeBenito |
696b41 |
}
|
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
?>
|