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

View File

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