Monitoring_ConfigController: make writeConfiguration's parameter `file' non-required

refs #6641
This commit is contained in:
Alexander Klimov 2014-08-19 13:51:10 +02:00
parent 0464099764
commit 6b468b7f9b

View File

@ -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));