From: sarven Date: Sat, 17 Jan 2009 21:09:42 +0000 (+0000) Subject: Update. Added separate $title param for input submit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=91475ca33f27be5116268415d80513bba6cfbd13;p=quix0rs-gnu-social.git Update. Added separate $title param for input submit --- diff --git a/lib/favorform.php b/lib/favorform.php index 519b305b6f..37e13fb1c5 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 f83998bc27..1e164933ce 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)); } /**