monitoring/commands: Fix `ToggleFeatureCommandForm::createElements()'

`Icinga\Web\Form::createElements()' no longer requires to return an array of elements
because elements should be created directly.

refs #6593
This commit is contained in:
Eric Lippmann 2014-09-04 13:02:38 +02:00
parent 8d109132b0
commit bc1d00f146
1 changed files with 8 additions and 9 deletions

View File

@ -63,17 +63,16 @@ abstract class ToggleFeatureCommandForm extends CommandForm
->getQuery()
->fetchRow();
}
return array(
$this->createElement(
'checkbox',
$this->feature,
array(
'label' => $this->label,
'autosubmit' => $this->inline,
'value' => $enabled
)
$this->addElement(
'checkbox',
$this->feature,
array(
'label' => $this->label,
'autosubmit' => $this->inline,
'value' => $enabled
)
);
return $this;
}
/**