From d09db3a920af7d9b433651569cc57cfea3db005f Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 1 Aug 2011 16:12:24 +0000 Subject: [PATCH] Better error message if the configuration file exists but is not readable SVN:trunk[1413] --- core/config.class.inc.php | 4 ++++ 1 file changed, 4 insertions(+) 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)