diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index d43fc646..c86fc89e 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1069,7 +1069,7 @@ reques * @var string */ 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'); return smarty_core_fetch_file_info($_params, $this); } diff --git a/libs/core/core.read_cache_file.php b/libs/core/core.read_cache_file.php index 1493d11e..dade4c7c 100644 --- a/libs/core/core.read_cache_file.php +++ b/libs/core/core.read_cache_file.php @@ -70,7 +70,7 @@ function smarty_core_read_cache_file(&$params, &$this) if ($this->compile_check) { require_once(SMARTY_DIR . 'core/core.fetch_file_info.php'); 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); if ($this->_cache_info['timestamp'] < $_params['file_timestamp']) { // template file has changed, regenerate cache