mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Monitoring_ConfigController: make writeConfiguration's parameter `file' non-required
refs #6641
This commit is contained in:
parent
0464099764
commit
6b468b7f9b
@ -216,7 +216,7 @@ class Monitoring_ConfigController extends ModuleActionController
|
|||||||
/**
|
/**
|
||||||
* Display a form to remove the instance identified by the 'instance' parameter
|
* Display a form to remove the instance identified by the 'instance' parameter
|
||||||
*/
|
*/
|
||||||
private function writeConfiguration($config, $file)
|
private function writeConfiguration($config, $file = null)
|
||||||
{
|
{
|
||||||
$target = $this->Config($file)->getConfigFile();
|
$target = $this->Config($file)->getConfigFile();
|
||||||
$writer = new PreservingIniWriter(array('filename' => $target, 'config' => $config));
|
$writer = new PreservingIniWriter(array('filename' => $target, 'config' => $config));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user