~ubuntu-branches/ubuntu/dapper/smarty/dapper-updates

« back to all changes in this revision

Viewing changes to libs/internals/core.write_compiled_include.php

  • Committer: Bazaar Package Importer
  • Author(s): Igor Genibel
  • Date: 2006-01-12 11:21:13 UTC
  • mfrom: (0.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060112112113-jnj3qjevq3otksra
Tags: 2.6.11-1
* New upstream release
* Added myself to Uploaders
* Ack previous NMU (Closes: #332098)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
function smarty_core_write_compiled_include($params, &$smarty)
17
17
{
18
 
    $_tag_start = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\';\}';
19
 
    $_tag_end   = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{/nocache\:(\\2)#(\\3)\}\';\}';
 
18
    $_tag_start = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\'; \};';
 
19
    $_tag_end   = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{/nocache\:(\\2)#(\\3)\}\'; \};';
20
20
 
21
21
    preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',
22
22
                   $params['compiled_content'], $_match_source, PREG_SET_ORDER);