X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ffavorform.php;h=625df7c8b5695b98a0792afe95f7454362eb9fd6;hb=584ea1b23c540cdd781f52eeecd6ad893f63c1a8;hp=c67e186974e1241a905d8984e726f4d4bac5c932;hpb=19ae54775b0c7e210462363cc4bfc72bdeb8103f;p=quix0rs-gnu-social.git diff --git a/lib/favorform.php b/lib/favorform.php index c67e186974..625df7c8b5 100644 --- a/lib/favorform.php +++ b/lib/favorform.php @@ -1,6 +1,6 @@ . * * @category Form - * @package Laconica - * @author Evan Prodromou - * @author Sarven Capadisli - * @copyright 2009 Control Yourself, Inc. + * @package StatusNet + * @author Evan Prodromou + * @author Sarven Capadisli + * @copyright 2009 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } @@ -38,11 +38,11 @@ require_once INSTALLDIR.'/lib/form.php'; * Form for favoring a notice * * @category Form - * @package Laconica - * @author Evan Prodromou - * @author Sarven Capadisli + * @package StatusNet + * @author Evan Prodromou + * @author Sarven Capadisli * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ * * @see DisfavorForm */ @@ -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'; + } +}