From f17df2e6be37f0d7a25e7e594fb0116785b46e6d Mon Sep 17 00:00:00 2001 From: sarven Date: Thu, 15 Jan 2009 23:59:43 +0000 Subject: [PATCH] notice_favorite class submit doesn't need a paragraph wrapper --- lib/favorform.php | 6 +++--- lib/htmloutputter.php | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/favorform.php b/lib/favorform.php index 4f4fd72a9d..8b01483b2e 100644 --- a/lib/favorform.php +++ b/lib/favorform.php @@ -125,7 +125,7 @@ class FavorForm extends Form function formActions() { $this->out->submit('favor-submit-' . $this->notice->id, - _('Make a favorite')); + _('Favorite')); } /** @@ -136,6 +136,6 @@ class FavorForm extends Form function formClass() { - return 'favor'; + return 'notice_favorite'; } -} \ No newline at end of file +} diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 75a995bef1..eb8a612e4f 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -324,13 +324,11 @@ class HTMLOutputter extends XMLOutputter function submit($id, $label, $cls='submit', $name=null) { - $this->elementStart('p'); $this->element('input', array('type' => 'submit', 'id' => $id, 'name' => ($name) ? $name : $id, 'class' => $cls, 'value' => $label)); - $this->elementEnd('p'); } /** -- 2.39.5