/[cvs]/nfo/php/libs/net.php.smarty/core/core.process_compiled_include.php
ViewVC logotype

Annotation of /nfo/php/libs/net.php.smarty/core/core.process_compiled_include.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Wed Jun 16 21:58:12 2004 UTC (20 years, 1 month ago) by joko
Branch: MAIN
CVS Tags: HEAD
updated to smarty-2.6.3

1 joko 1.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    
17     function 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     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);
27     }
28     $smarty->_cache_including = $_cache_including;
29     return $_return;
30     }
31    
32     ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed