X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fleaveform.php;h=a32af18eda07083beae4a75c2af0a48187cb455c;hb=238d2a387623743fd98c84783ce360bf1d2db6ee;hp=34671f5f8d246d9acbd8759b9b2acb392597b79a;hpb=28809035d0d032c59731c0796610bb444f97dbf5;p=quix0rs-gnu-social.git diff --git a/lib/leaveform.php b/lib/leaveform.php index 34671f5f8d..a32af18eda 100644 --- a/lib/leaveform.php +++ b/lib/leaveform.php @@ -46,7 +46,6 @@ require_once INSTALLDIR.'/lib/form.php'; * * @see UnsubscribeForm */ - class LeaveForm extends Form { /** @@ -61,7 +60,6 @@ class LeaveForm extends Form * @param HTMLOutputter $out output channel * @param group $group group to leave */ - function __construct($out=null, $group=null) { parent::__construct($out); @@ -74,7 +72,6 @@ class LeaveForm extends Form * * @return string ID of the form */ - function id() { return 'group-leave-' . $this->group->id; @@ -85,7 +82,6 @@ class LeaveForm extends Form * * @return string of the form class */ - function formClass() { return 'form_group_leave ajax'; @@ -96,7 +92,6 @@ class LeaveForm extends Form * * @return string URL of the action */ - function action() { return common_local_url('leavegroup', @@ -108,9 +103,9 @@ class LeaveForm extends Form * * @return void */ - function formActions() { - $this->out->submit('submit', _('Leave')); + // TRANS: Button text on form to leave a group. + $this->out->submit('submit', _m('BUTTON','Leave')); } }