diff --git a/core/config.class.inc.php b/core/config.class.inc.php index fda6f52c4..a07273daf 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -610,6 +610,10 @@ class Config { throw new ConfigException("Could not find $sPurpose file", array('file' => $sFileName)); } + if (!is_readable($sFileName)) + { + throw new ConfigException("Could not read $sPurpose file (the file exists but cannot be read). Do you have the rights to access this file?", array('file' => $sFileName)); + } } protected function Load($sConfigFile)