diff --git a/library/Icinga/Form/Confirmation.php b/library/Icinga/Form/Confirmation.php index 106c26793..cea06b9ed 100644 --- a/library/Icinga/Form/Confirmation.php +++ b/library/Icinga/Form/Confirmation.php @@ -2,7 +2,6 @@ namespace Icinga\Form; use Icinga\Form\Builder; -use Icinga\Form\Elements\Note; use Icinga\Exception\ProgrammingError; class Confirmation extends Builder @@ -21,7 +20,10 @@ class Confirmation extends Builder public function init() { $this->setMethod("post"); - $this->addElement(new Note($this->message)); + + $note = new \Zend_Form_Element_Note("note"); + $note->setValue($this->message); + $this->addElement($note); if ($this->style === self::YES_NO) { $this->addElement('submit', 'btn_yes', array( diff --git a/library/Icinga/Form/Elements/Note.php b/library/Icinga/Form/Elements/Note.php deleted file mode 100644 index c8eedbdfe..000000000 --- a/library/Icinga/Form/Elements/Note.php +++ /dev/null @@ -1,15 +0,0 @@ -setValue("
$value
"); - } -} - -?> \ No newline at end of file