You are here

function smarty_core_process_compiled_include in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/smarty/core/core.process_compiled_include.php \smarty_core_process_compiled_include()

Replace nocache-tags by results of the corresponding non-cacheable functions and return it

Parameters

string $compiled_tpl:

string $cached_source:

Return value

string

1 call to smarty_core_process_compiled_include()
Smarty::fetch in includes/moodle/lib/smarty/Smarty.class.php
executes & returns or displays the template results

File

includes/moodle/lib/smarty/core/core.process_compiled_include.php, line 17

Code

function smarty_core_process_compiled_include($params, &$smarty) {
  $_cache_including = $smarty->_cache_including;
  $smarty->_cache_including = true;
  $_return = $params['results'];
  foreach ($smarty->_cache_serials as $_include_file_path => $_cache_serial) {
    $_return = preg_replace_callback('!(\\{nocache\\:(' . $_cache_serial . ')#(\\d+)\\})!s', array(
      &$smarty,
      '_process_compiled_include_callback',
    ), $_return);
  }
  $smarty->_cache_including = $_cache_including;
  return $_return;
}