silence occasional warnings of open_basedir- and

safe_mode-restrictions in core.get_include_path.php
This commit is contained in:
messju
2003-11-24 14:56:02 +00:00
parent d81763654c
commit 690e0a9e1c

View File

@@ -31,7 +31,7 @@ function smarty_core_get_include_path(&$params, &$smarty)
} }
} }
foreach ($_path_array as $_include_path) { foreach ($_path_array as $_include_path) {
if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) { if (@is_readable($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) {
$params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path']; $params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path'];
return true; return true;
} }