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,8 +63,7 @@ abstract class ToggleFeatureCommandForm extends CommandForm
->getQuery()
->fetchRow();
}
return array(
$this->createElement(
$this->addElement(
'checkbox',
$this->feature,
array(
@ -72,8 +71,8 @@ abstract class ToggleFeatureCommandForm extends CommandForm
'autosubmit' => $this->inline,
'value' => $enabled
)
)
);
return $this;
}
/**