forked from GNUsocial/gnu-social
Cosmetic changes to common_redirect, clientError, serverError
Since these functions exit (or throw exception) after running, there is no need to have a 'return' statement or similar afterwards.
This commit is contained in:
@@ -63,7 +63,6 @@ class AdminprofileflagAction extends Action
|
||||
if (!common_logged_in()) {
|
||||
// TRANS: Error message displayed when trying to perform an action that requires a logged in user.
|
||||
$this->clientError(_m('Not logged in.'));
|
||||
return;
|
||||
}
|
||||
|
||||
$user = common_current_user();
|
||||
@@ -88,7 +87,6 @@ class AdminprofileflagAction extends Action
|
||||
if (!$user->hasRight(UserFlagPlugin::REVIEWFLAGS)) {
|
||||
// TRANS: Error message displayed when trying to review profile flags while not authorised.
|
||||
$this->clientError(_m('You cannot review profile flags.'));
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->page = $this->trimmed('page');
|
||||
|
||||
Reference in New Issue
Block a user