removed '.' from the list of default resource_base_paths in

_parse_resource_name()

this should only affect _parse_resource_name() for templates, not for
php-resources and not for config_files. the latter pass two their own
resource_base_path.
This commit is contained in:
messju
2004-03-17 15:32:10 +00:00
parent c3467cf66d
commit d271bced39
2 changed files with 2 additions and 1 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- removed '.' from the list of default template locations in
_parse_resource_name() (messju)
- fix avoid warning with template_exists() on an absolute paths (messju)
- fix parameters passed to resource's secure()-function (messju)
- fix handling of integer values like width and delay im

View File

@@ -1637,7 +1637,6 @@ class Smarty
$_resource_base_path = (array)$params['resource_base_path'];
} else {
$_resource_base_path = (array)$this->template_dir;
$_resource_base_path[] = '.';
}
foreach ($_resource_base_path as $_curr_path) {
$_fullpath = $_curr_path . DIRECTORY_SEPARATOR . $params['resource_name'];