summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/favorform.php2
-rw-r--r--lib/htmloutputter.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/favorform.php b/lib/favorform.php
index 519b305b6..37e13fb1c 100644
--- a/lib/favorform.php
+++ b/lib/favorform.php
@@ -137,7 +137,7 @@ class FavorForm extends Form
function formActions()
{
$this->out->submit('favor-submit-' . $this->notice->id,
- _('Favor this notice'));
+ _('Favor'), 'submit', null, _('Favor this notice'));
}
/**
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php
index f83998bc2..1e164933c 100644
--- a/lib/htmloutputter.php
+++ b/lib/htmloutputter.php
@@ -313,14 +313,14 @@ class HTMLOutputter extends XMLOutputter
* @todo add a $name parameter
*/
- function submit($id, $label, $cls='submit', $name=null)
+ function submit($id, $label, $cls='submit', $name=null, $title=null)
{
$this->element('input', array('type' => 'submit',
'id' => $id,
'name' => ($name) ? $name : $id,
'class' => $cls,
'value' => $label,
- 'title' => $label));
+ 'title' => $title));
}
/**