_parse_resource_name() returned true on non-existant absolute

paths. This caused a warning on _fetch_resource_info() when used in
conjunction with template_exists(). It should be fixed now without
negative effects.
This commit is contained in:
messju
2004-02-24 22:23:13 +00:00
parent f9220c947d
commit 077b7e7865
2 changed files with 4 additions and 0 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- fix avoid warning with template_exists() on an absolute paths (messju)
- fix parameters passed to resource's secure()-function (messju) - fix parameters passed to resource's secure()-function (messju)
- fix handling of integer values like width and delay im - fix handling of integer values like width and delay im
smarty_function_popup() (messju) smarty_function_popup() (messju)

View File

@@ -1665,6 +1665,9 @@ class Smarty
} }
} }
return false; return false;
} else {
/* absolute path */
return file_exists($params['resource_name']);
} }
} elseif (empty($this->_plugins['resource'][$params['resource_type']])) { } elseif (empty($this->_plugins['resource'][$params['resource_type']])) {
$_params = array('type' => $params['resource_type']); $_params = array('type' => $params['resource_type']);