Commit 3c5a04f7 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

adding is_readable check

parent de1d8043
......@@ -68,7 +68,7 @@ function provision_init() {
array_pop($parts);
define('PROVISION_PARENT_PATH', rtrim(implode("/" , $parts), '/'));
if (file_exists('sites/default/provision.settings.php')) {
if (file_exists('sites/default/provision.settings.php') && is_readable('sites/default/provision.settings.php')) {
include_once('sites/default/provision.settings.php');
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment