X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frepeatform.php;h=f0ce37fb62db07fc0798400d9cbb051c0917ba4c;hb=7220b3ddd4a32b947e851c946cb6ad6146bebf7d;hp=50e5d6dbe04d19e44284f1166a0872d2ec333ad8;hpb=a3660fbea46be4d9408cd0f824166a75b8c865ab;p=quix0rs-gnu-social.git diff --git a/lib/repeatform.php b/lib/repeatform.php index 50e5d6dbe0..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,7 +87,8 @@ class RepeatForm extends Form */ function formLegend() { - $this->out->element('legend', null, _('Repeat this notice')); + // 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, - _('Repeat'), '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';