IcingaConfig::configFile(): allow custom suffix

This commit is contained in:
Thomas Gelf 2015-10-15 20:02:44 +02:00
parent d7c2e7dacd
commit fc748ff80a
1 changed files with 2 additions and 2 deletions

View File

@ -317,9 +317,9 @@ continue;
return $this;
}
protected function configFile($name)
protected function configFile($name, $suffix = '.conf')
{
$filename = $name . '.conf';
$filename = $name . $suffix;
if (! array_key_exists($filename, $this->files)) {
$this->files[$filename] = new IcingaConfigFile();
}