X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fdisfavorform.php;h=45a9ddb1d42bc4d3a07f41a4453c70d1571132b1;hb=3af566d1ecb5793324f7395ebec254848c47df09;hp=25f99f43c157467c3886e35fdcebdee346f3f01a;hpb=19ae54775b0c7e210462363cc4bfc72bdeb8103f;p=quix0rs-gnu-social.git diff --git a/lib/disfavorform.php b/lib/disfavorform.php index 25f99f43c1..45a9ddb1d4 100644 --- a/lib/disfavorform.php +++ b/lib/disfavorform.php @@ -88,7 +88,7 @@ class DisfavorForm extends Form function action() { - common_local_url('disfavor'); + return common_local_url('disfavor'); } /** @@ -103,6 +103,18 @@ class DisfavorForm extends Form common_session_token()); } + + /** + * Legend of the Form + * + * @return void + */ + function formLegend() + { + $this->out->element('legend', null, _('Disfavor this notice')); + } + + /** * Data elements * @@ -125,6 +137,18 @@ class DisfavorForm extends Form function formActions() { $this->out->submit('disfavor-submit-' . $this->notice->id, - _('Disfavor favorite')); + _('Disfavor favorite'), 'submit', null, _('Disfavor this notice')); } -} \ No newline at end of file + + /** + * Class of the form. + * + * @return string the form's class + */ + + function formClass() + { + return 'form_disfavor'; + } + +}