diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 2b39b111..cd1b3a98 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1108,7 +1108,7 @@ class Smarty */ function template_exists($tpl_file) { - $_params = array('resource_name' => $tpl_file); + $_params = array('resource_name' => $tpl_file, 'get_source'=>false); return $this->_fetch_resource_info($_params); } diff --git a/libs/core/core.read_cache_file.php b/libs/core/core.read_cache_file.php index 6db65d56..b4c02921 100644 --- a/libs/core/core.read_cache_file.php +++ b/libs/core/core.read_cache_file.php @@ -68,8 +68,9 @@ function smarty_core_read_cache_file(&$params, &$smarty) } if ($smarty->compile_check) { + $_params = array('get_source' => false); foreach (array_keys($smarty->_cache_info['template']) as $_template_dep) { - $_params = array('resource_name' => $_template_dep); + $_params['resource_name'] = $_template_dep; $smarty->_fetch_resource_info($_params); if ($smarty->_cache_info['timestamp'] < $_params['resource_timestamp']) { // template file has changed, regenerate cache @@ -78,7 +79,7 @@ function smarty_core_read_cache_file(&$params, &$smarty) } if (isset($smarty->_cache_info['config'])) { - $_params = array('resource_base_path' => $smarty->config_dir); + $_params = array('resource_base_path' => $smarty->config_dir, 'get_source' => false); foreach (array_keys($smarty->_cache_info['config']) as $_config_dep) { $_params['resource_name'] = $_config_dep; $smarty->_fetch_resource_info($_params);