mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Config: Don't throw NotReadableError if the file does not exist
This commit is contained in:
parent
7fc70c5a02
commit
599cb620d8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue