X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fsandbox.php;h=af2eab3842d268add1d5a8c0693464a81fb91871;hb=a70d43a685d72e2bad64efd02bdcc928b921d356;hp=5b034ff07819da35c5ce1707318aa3b9687ebb77;hpb=a42e128c1532c45fd930d98c985f9a8d98ff6868;p=quix0rs-gnu-social.git diff --git a/actions/sandbox.php b/actions/sandbox.php index 5b034ff078..af2eab3842 100644 --- a/actions/sandbox.php +++ b/actions/sandbox.php @@ -40,7 +40,6 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 * @link http://status.net/ */ - class SandboxAction extends ProfileFormAction { /** @@ -50,7 +49,6 @@ class SandboxAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) { if (!parent::prepare($args)) { @@ -62,15 +60,15 @@ class SandboxAction extends ProfileFormAction assert(!empty($cur)); // checked by parent if (!$cur->hasRight(Right::SANDBOXUSER)) { - $this->clientError(_("You cannot sandbox users on this site.")); - return false; + // TRANS: Client error displayed trying to sandbox users on a site where the feature is not enabled. + $this->clientError(_('You cannot sandbox users on this site.')); } assert(!empty($this->profile)); // checked by parent if ($this->profile->isSandboxed()) { - $this->clientError(_("User is already sandboxed.")); - return false; + // TRANS: Client error displayed trying to sandbox an already sandboxed user. + $this->clientError(_('User is already sandboxed.')); } return true; @@ -81,7 +79,6 @@ class SandboxAction extends ProfileFormAction * * @return void */ - function handlePost() { $this->profile->sandbox();