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