mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
06.02.2012
|
||||||
|
- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)
|
||||||
|
|
||||||
30.01.2012
|
30.01.2012
|
||||||
- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated
|
- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated
|
||||||
|
|
||||||
|
@@ -25,6 +25,11 @@ class Smarty_Internal_Get_Include_Path {
|
|||||||
{
|
{
|
||||||
static $_include_path = null;
|
static $_include_path = null;
|
||||||
|
|
||||||
|
if (function_exists('stream_resolve_include_path')) {
|
||||||
|
// available since PHP 5.3.2
|
||||||
|
return stream_resolve_include_path($filepath);
|
||||||
|
}
|
||||||
|
|
||||||
if ($_include_path === null) {
|
if ($_include_path === null) {
|
||||||
$_include_path = explode(PATH_SEPARATOR, get_include_path());
|
$_include_path = explode(PATH_SEPARATOR, get_include_path());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user