mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
silence occasional warnings of open_basedir- and
safe_mode-restrictions in core.get_include_path.php
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user