mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix minor logic in _fetch_template_info()
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
||||
- fix minor logic in _fetch_template_info (Dennis Gearon,
|
||||
Monte)
|
||||
- fix cache groups with compile_id set (Monte)
|
||||
- add support for merging appended vars (messju, Monte)
|
||||
- change embedded variable logic to only recognize $foo and
|
||||
|
@@ -1651,10 +1651,10 @@ class Smarty
|
||||
if (!empty($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.");
|
||||
$_return = false;
|
||||
}
|
||||
$funcname = $this->default_template_handler_func;
|
||||
$_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this);
|
||||
} else {
|
||||
$funcname = $this->default_template_handler_func;
|
||||
$_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1651,10 +1651,10 @@ class Smarty
|
||||
if (!empty($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.");
|
||||
$_return = false;
|
||||
}
|
||||
$funcname = $this->default_template_handler_func;
|
||||
$_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this);
|
||||
} else {
|
||||
$funcname = $this->default_template_handler_func;
|
||||
$_return = $funcname($resource_type, $resource_name, $template_source, $template_timestamp, $this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user