fix minor logic in _fetch_template_info()

This commit is contained in:
mohrt
2003-02-20 18:58:44 +00:00
parent f66f204ef8
commit 5307693b78
3 changed files with 10 additions and 8 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fix minor logic in _fetch_template_info (Dennis Gearon,
Monte)
- fix cache groups with compile_id set (Monte) - fix cache groups with compile_id set (Monte)
- add support for merging appended vars (messju, Monte) - add support for merging appended vars (messju, Monte)
- change embedded variable logic to only recognize $foo and - change embedded variable logic to only recognize $foo and

View File

@@ -1651,10 +1651,10 @@ class Smarty
if (!empty($this->default_template_handler_func)) { if (!empty($this->default_template_handler_func)) {
if (!function_exists($this->default_template_handler_func)) { if (!function_exists($this->default_template_handler_func)) {
$this->trigger_error("default template handler function \"$this->default_template_handler_func\" doesn't exist."); $this->trigger_error("default template handler function \"$this->default_template_handler_func\" doesn't exist.");
$_return = false; } else {
} $funcname = $this->default_template_handler_func;
$funcname = $this->default_template_handler_func; $_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this);
$_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this); }
} }
} }

View File

@@ -1651,10 +1651,10 @@ class Smarty
if (!empty($this->default_template_handler_func)) { if (!empty($this->default_template_handler_func)) {
if (!function_exists($this->default_template_handler_func)) { if (!function_exists($this->default_template_handler_func)) {
$this->trigger_error("default template handler function \"$this->default_template_handler_func\" doesn't exist."); $this->trigger_error("default template handler function \"$this->default_template_handler_func\" doesn't exist.");
$_return = false; } else {
} $funcname = $this->default_template_handler_func;
$funcname = $this->default_template_handler_func; $_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this);
$_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this); }
} }
} }