Config: Don't throw NotReadableError if the file does not exist

This commit is contained in:
Eric Lippmann 2015-01-19 11:23:43 +01:00
parent 7fc70c5a02
commit 599cb620d8

View File

@ -292,7 +292,7 @@ class Config implements Countable, Iterator
$config = new static(new ConfigObject(parse_ini_file($filepath, true)));
$config->setConfigFile($filepath);
return $config;
} else {
} elseif (@file_exists($filepath)) {
throw new NotReadableError(t('Cannot read config file "%s". Permission denied'), $filepath);
}