summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-15 23:59:43 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-15 23:59:43 +0000
commitf17df2e6be37f0d7a25e7e594fb0116785b46e6d (patch)
tree880222a43c9af54a4dbeda974a4a6179affbdf70
parentd3092274c25e9ee8b0fa729a5f3a35df7dde276c (diff)
notice_favorite class
submit doesn't need a paragraph wrapper
-rw-r--r--lib/favorform.php6
-rw-r--r--lib/htmloutputter.php2
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/favorform.php b/lib/favorform.php
index 4f4fd72a9..8b01483b2 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 75a995bef..eb8a612e4 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');
}
/**