1
0

smarty 3.1.8 releases - see changelog

This commit is contained in:
Ian
2012-02-20 18:06:30 +01:00
parent 83ccfc55db
commit 6d6b286420
22 changed files with 285 additions and 130 deletions

View File

@@ -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;
}