X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Ffavor.php;h=39d7735d0085a4a43cbab0d9bf0ef92f9a0adb6f;hb=0755f45bf0fabc174186a57afbfc2888d1b0033c;hp=61db235738976a00901c9d9eaa842683329e3db7;hpb=641018e95051b029dcd57a4eb304ee545230136a;p=quix0rs-gnu-social.git diff --git a/actions/favor.php b/actions/favor.php index 61db235738..39d7735d00 100644 --- a/actions/favor.php +++ b/actions/favor.php @@ -58,7 +58,7 @@ class FavorAction extends Action { parent::handle($args); if (!common_logged_in()) { - // TRANS: Client error displayed when trying to mark a notice as favorite without being logged in. + // TRANS: Error message displayed when trying to perform an action that requires a logged in user. $this->clientError(_('Not logged in.')); return; } @@ -72,6 +72,7 @@ class FavorAction extends Action $notice = Notice::staticGet($id); $token = $this->trimmed('token-'.$notice->id); if (!$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; }