mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
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:
2
NEWS
2
NEWS
@@ -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
|
||||
|
@@ -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'];
|
||||
|
Reference in New Issue
Block a user