X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frepeatform.php;h=f0ce37fb62db07fc0798400d9cbb051c0917ba4c;hb=931753229328d0ebdf80b76b898a736c06dc70a4;hp=4f1c8aa3201d7cc44453f56c1aa2f79e541ed18e;hpb=7aeb11bb077079d5008e9c07e3945b466eb2d3b8;p=quix0rs-gnu-social.git diff --git a/lib/repeatform.php b/lib/repeatform.php index 4f1c8aa320..f0ce37fb62 100644 --- a/lib/repeatform.php +++ b/lib/repeatform.php @@ -40,13 +40,11 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ - class RepeatForm extends Form { /** * Notice to repeat */ - var $notice = null; /** @@ -55,7 +53,6 @@ class RepeatForm extends Form * @param HTMLOutputter $out output channel * @param Notice $notice notice to repeat */ - function __construct($out=null, $notice=null) { parent::__construct($out); @@ -68,7 +65,6 @@ class RepeatForm extends Form * * @return int ID of the form */ - function id() { return 'repeat-' . $this->notice->id; @@ -79,24 +75,11 @@ class RepeatForm extends Form * * @return string URL of the action */ - function action() { return common_local_url('repeat'); } - /** - * Include a session token for CSRF protection - * - * @return void - */ - - function sessionToken() - { - $this->out->hidden('token-' . $this->notice->id, - common_session_token()); - } - /** * Legend of the Form * @@ -104,6 +87,7 @@ class RepeatForm extends Form */ function formLegend() { + // TRANS: For legend for notice repeat form. $this->out->element('legend', null, _('Repeat this notice?')); } @@ -112,7 +96,6 @@ class RepeatForm extends Form * * @return void */ - function formData() { $this->out->hidden('notice-n'.$this->notice->id, @@ -125,11 +108,13 @@ class RepeatForm extends Form * * @return void */ - function formActions() { $this->out->submit('repeat-submit-' . $this->notice->id, - _('Yes'), 'submit', null, _('Repeat this notice')); + // TRANS: Button text to repeat a notice on notice repeat form. + _m('BUTTON','Yes'), 'submit', null, + // TRANS: Button title to repeat a notice on notice repeat form. + _('Repeat this notice.')); } /** @@ -137,7 +122,6 @@ class RepeatForm extends Form * * @return string the form's class */ - function formClass() { return 'form_repeat';