mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fixed $file_path-parameters passed to smarty_core_fetch_file_info()
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user