X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Funsubscribeform.php;h=3fa594b1b3424144432894f5c450f494d8a9af2e;hb=5beea658a463609933ea11f6c0f0fd1773daddc6;hp=2fe06752e7d7e7f9970ceca034bae9ace19b2362;hpb=c8b8f07af14ad2ce9d0c0267962dd3bbf6473a4b;p=quix0rs-gnu-social.git diff --git a/lib/unsubscribeform.php b/lib/unsubscribeform.php index 2fe06752e7..3fa594b1b3 100644 --- a/lib/unsubscribeform.php +++ b/lib/unsubscribeform.php @@ -21,14 +21,14 @@ * * @category Form * @package StatusNet - * @author Evan Prodromou - * @author Sarven Capadisli + * @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); } @@ -39,14 +39,13 @@ require_once INSTALLDIR.'/lib/form.php'; * * @category Form * @package StatusNet - * @author Evan Prodromou - * @author Sarven Capadisli + * @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 SubscribeForm */ - class UnsubscribeForm extends Form { /** @@ -61,7 +60,6 @@ class UnsubscribeForm extends Form * @param HTMLOutputter $out output channel * @param Profile $profile profile of user to unsub from */ - function __construct($out=null, $profile=null) { parent::__construct($out); @@ -74,7 +72,6 @@ class UnsubscribeForm extends Form * * @return int ID of the form */ - function id() { return 'unsubscribe-' . $this->profile->id; @@ -86,10 +83,9 @@ class UnsubscribeForm extends Form * * @return string of the form class */ - function formClass() { - return 'form_user_unsubscribe'; + return 'form_user_unsubscribe ajax'; } /** @@ -97,7 +93,6 @@ class UnsubscribeForm extends Form * * @return string URL of the action */ - function action() { return common_local_url('unsubscribe'); @@ -110,6 +105,7 @@ class UnsubscribeForm extends Form */ function formLegend() { + // TRANS: Form legend on unsubscribe form. $this->out->element('legend', null, _('Unsubscribe from this user')); } @@ -118,7 +114,6 @@ class UnsubscribeForm extends Form * * @return void */ - function formData() { $this->out->hidden('unsubscribeto-' . $this->profile->id, @@ -131,9 +126,11 @@ class UnsubscribeForm extends Form * * @return void */ - function formActions() { - $this->out->submit('submit', _('Unsubscribe'), 'submit', null, _('Unsubscribe from this user')); + // TRANS: Button text on unsubscribe form. + $this->out->submit('submit', _m('BUTTON','Unsubscribe'), 'submit', null, + // TRANS: Button title on unsubscribe form. + _('Unsubscribe from this user.')); } }