X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ffavorform.php;h=f3a7a97569019e0b635c4fdf1f1cf656826ff905;hb=28d02ec8cdd0278c802c8fee30acddecca9ca01f;hp=c67e186974e1241a905d8984e726f4d4bac5c932;hpb=19ae54775b0c7e210462363cc4bfc72bdeb8103f;p=quix0rs-gnu-social.git diff --git a/lib/favorform.php b/lib/favorform.php index c67e186974..f3a7a97569 100644 --- a/lib/favorform.php +++ b/lib/favorform.php @@ -88,7 +88,7 @@ class FavorForm extends Form function action() { - common_local_url('favor'); + return common_local_url('favor'); } /** @@ -103,6 +103,18 @@ class FavorForm extends Form common_session_token()); } + + /** + * Legend of the Form + * + * @return void + */ + function formLegend() + { + $this->out->element('legend', null, _('Favor this notice')); + } + + /** * Data elements * @@ -125,6 +137,17 @@ class FavorForm extends Form function formActions() { $this->out->submit('favor-submit-' . $this->notice->id, - _('Make a favorite')); + _('Favor'), 'submit', null, _('Favor this notice')); } -} \ No newline at end of file + + /** + * Class of the form. + * + * @return string the form's class + */ + + function formClass() + { + return 'form_favor'; + } +}