X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Funsilence.php;h=c01c141b1c193fd6337365b26497d9438bc71094;hb=d4be5349b30f49fa049dbfc854bb2a95eeb1d5c1;hp=9ff1b828b03e59f0db8dd02cbef567ba58247cf7;hpb=6a1afda259c5223449f679a64f932e36df5ebe39;p=quix0rs-gnu-social.git diff --git a/actions/unsilence.php b/actions/unsilence.php index 9ff1b828b0..c01c141b1c 100644 --- a/actions/unsilence.php +++ b/actions/unsilence.php @@ -40,7 +40,6 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 * @link http://status.net/ */ - class UnsilenceAction extends ProfileFormAction { /** @@ -50,7 +49,6 @@ class UnsilenceAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) { if (!parent::prepare($args)) { @@ -62,15 +60,15 @@ class UnsilenceAction extends ProfileFormAction assert(!empty($cur)); // checked by parent if (!$cur->hasRight(Right::SILENCEUSER)) { - $this->clientError(_("You cannot silence users on this site.")); - return false; + // TRANS: Client error on page to unsilence a user when the feature is not enabled. + $this->clientError(_('You cannot silence users on this site.')); } assert(!empty($this->profile)); // checked by parent if (!$this->profile->isSilenced()) { - $this->clientError(_("User is not silenced.")); - return false; + // TRANS: Client error on page to unsilence a user when the to be unsilenced user has not been silenced. + $this->clientError(_('User is not silenced.')); } return true; @@ -81,7 +79,6 @@ class UnsilenceAction extends ProfileFormAction * * @return void */ - function handlePost() { $this->profile->unsilence();