mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 05:14:25 +02:00
Config: Don't throw NotReadableError if the file does not exist
This commit is contained in:
parent
7fc70c5a02
commit
599cb620d8
@ -292,7 +292,7 @@ class Config implements Countable, Iterator
|
|||||||
$config = new static(new ConfigObject(parse_ini_file($filepath, true)));
|
$config = new static(new ConfigObject(parse_ini_file($filepath, true)));
|
||||||
$config->setConfigFile($filepath);
|
$config->setConfigFile($filepath);
|
||||||
return $config;
|
return $config;
|
||||||
} else {
|
} elseif (@file_exists($filepath)) {
|
||||||
throw new NotReadableError(t('Cannot read config file "%s". Permission denied'), $filepath);
|
throw new NotReadableError(t('Cannot read config file "%s". Permission denied'), $filepath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user