From 71e25f268af2bcc47a5e268b66e63159a2135d5e Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 28 Oct 2014 13:52:10 +0100 Subject: [PATCH] monitoring: Rename label of the path to the local Icinga command file Rename 'Local filepath' to 'Command file' because the remote instance form is using 'Command file' too. --- .../forms/Config/Instance/LocalInstanceForm.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/monitoring/application/forms/Config/Instance/LocalInstanceForm.php b/modules/monitoring/application/forms/Config/Instance/LocalInstanceForm.php index 7af9b1bb3..029da3d35 100644 --- a/modules/monitoring/application/forms/Config/Instance/LocalInstanceForm.php +++ b/modules/monitoring/application/forms/Config/Instance/LocalInstanceForm.php @@ -9,7 +9,8 @@ use Icinga\Web\Form; class LocalInstanceForm extends Form { /** - * Initialize this form + * (non-PHPDoc) + * @see Form::init() For the method documentation. */ public function init() { @@ -17,21 +18,21 @@ class LocalInstanceForm extends Form } /** - * @see Form::createElements() + * (non-PHPDoc) + * @see Form::createElements() For the method documentation. */ - public function createElements(array $formData) + public function createElements(array $formData = array()) { $this->addElement( 'text', 'path', array( 'required' => true, - 'label' => mt('monitoring', 'Local Filepath'), + 'label' => mt('monitoring', 'Command File'), 'value' => '/usr/local/icinga/var/rw/icinga.cmd', - 'description' => mt('monitoring', 'The file path where the icinga commandpipe can be found') + 'description' => mt('monitoring', 'Path to the local Icinga command file') ) ); - return $this; } }