From 690e0a9e1c61b0bdf2487d96b1ac13eb0040386d Mon Sep 17 00:00:00 2001 From: messju Date: Mon, 24 Nov 2003 14:56:02 +0000 Subject: [PATCH] silence occasional warnings of open_basedir- and safe_mode-restrictions in core.get_include_path.php --- libs/core/core.get_include_path.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/core.get_include_path.php b/libs/core/core.get_include_path.php index eb7188cd..43432412 100644 --- a/libs/core/core.get_include_path.php +++ b/libs/core/core.get_include_path.php @@ -31,7 +31,7 @@ function smarty_core_get_include_path(&$params, &$smarty) } } 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']; return true; }