From 1c6f67aac72c1fd85ab7ff6f4f48b9be31cc7619 Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 12 Dec 2001 17:19:40 +0000 Subject: [PATCH] update default template handling functionality --- Smarty.class.php | 3 +-- libs/Smarty.class.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index 09b5064b..8202abf3 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -904,7 +904,6 @@ function _is_trusted($resource_type, $resource_name) \*======================================================================*/ function _fetch_template_info($tpl_path, &$template_source, &$template_timestamp, $get_source=true) { - $_return = false; if($this->_parse_file_path($this->template_dir, $tpl_path, $resource_type, $resource_name)) { switch ($resource_type) { @@ -936,7 +935,7 @@ function _is_trusted($resource_type, $resource_name) $_return = false; } $funcname = $this->default_template_handler_func; - $_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this); + $_return = $funcname($tpl_path, $template_source, $template_timestamp, $this); } } diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 09b5064b..8202abf3 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -904,7 +904,6 @@ function _is_trusted($resource_type, $resource_name) \*======================================================================*/ function _fetch_template_info($tpl_path, &$template_source, &$template_timestamp, $get_source=true) { - $_return = false; if($this->_parse_file_path($this->template_dir, $tpl_path, $resource_type, $resource_name)) { switch ($resource_type) { @@ -936,7 +935,7 @@ function _is_trusted($resource_type, $resource_name) $_return = false; } $funcname = $this->default_template_handler_func; - $_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this); + $_return = $funcname($tpl_path, $template_source, $template_timestamp, $this); } }