fixed $file_path-parameters passed to smarty_core_fetch_file_info()

This commit is contained in:
messju
2003-06-18 19:45:12 +00:00
parent 50b44d5858
commit a3935d7fcb
2 changed files with 2 additions and 2 deletions

View File

@@ -1069,7 +1069,7 @@ reques * @var string
*/ */
function template_exists($tpl_file) function template_exists($tpl_file)
{ {
$_params = array('file_path' => $this->template_dir . '/' . $tpl_file); $_params = array('file_path' => $tpl_file);
require_once(SMARTY_DIR . 'core/core.fetch_file_info.php'); require_once(SMARTY_DIR . 'core/core.fetch_file_info.php');
return smarty_core_fetch_file_info($_params, $this); return smarty_core_fetch_file_info($_params, $this);
} }

View File

@@ -70,7 +70,7 @@ function smarty_core_read_cache_file(&$params, &$this)
if ($this->compile_check) { if ($this->compile_check) {
require_once(SMARTY_DIR . 'core/core.fetch_file_info.php'); require_once(SMARTY_DIR . 'core/core.fetch_file_info.php');
foreach (array_keys($this->_cache_info['template']) as $_template_dep) { foreach (array_keys($this->_cache_info['template']) as $_template_dep) {
$_params = array('file_path' => $this->template_dir . '/' . $_template_dep); $_params = array('file_path' => $_template_dep);
smarty_core_fetch_file_info($_params, $this); smarty_core_fetch_file_info($_params, $this);
if ($this->_cache_info['timestamp'] < $_params['file_timestamp']) { if ($this->_cache_info['timestamp'] < $_params['file_timestamp']) {
// template file has changed, regenerate cache // template file has changed, regenerate cache