smarty 3.1.8 releases - see changelog
This commit is contained in:
@@ -24,8 +24,13 @@ class Smarty_Internal_Get_Include_Path {
|
||||
public static function getIncludePath($filepath)
|
||||
{
|
||||
static $_include_path = null;
|
||||
|
||||
if (function_exists('stream_resolve_include_path')) {
|
||||
// available since PHP 5.3.2
|
||||
return stream_resolve_include_path($filepath);
|
||||
}
|
||||
|
||||
if ($_path_array === null) {
|
||||
if ($_include_path === null) {
|
||||
$_include_path = explode(PATH_SEPARATOR, get_include_path());
|
||||
}
|
||||
|
||||
@@ -34,7 +39,7 @@ class Smarty_Internal_Get_Include_Path {
|
||||
return $_path . DS . $filepath;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user