X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fmakeadmin.php;h=8ec8a7ce0c777dd900fef77f420d6e7cd7d60463;hb=53af608ef882eb03cd924ed630f98d856c11370a;hp=3613e1eb708f1e80a7dead7e9628f0e46d28b000;hpb=b37e12ed3436e7616c491016a68342559752d178;p=quix0rs-gnu-social.git diff --git a/actions/makeadmin.php b/actions/makeadmin.php index 3613e1eb70..8ec8a7ce0c 100644 --- a/actions/makeadmin.php +++ b/actions/makeadmin.php @@ -58,12 +58,13 @@ class MakeadminAction extends RedirectingAction { parent::prepare($args); if (!common_logged_in()) { - // TRANS: Client error displayed when trying to access the "make admin" page while not logged in. + // TRANS: Error message displayed when trying to perform an action that requires a logged in user. $this->clientError(_('Not logged in.')); return false; } $token = $this->trimmed('token'); if (empty($token) || $token != common_session_token()) { + // TRANS: Client error displayed when the session token does not match or is not given. $this->clientError(_('There was a problem with your session token. Try again, please.')); return; }