X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnewapplication.php;h=ca5d902a268d1f7bd2ab8d09c2546b15aa17ce67;hb=da6822c1f0573cdc2c8b54dd686601717b12b5c7;hp=657c7bcb71c4b3a64422708c311d7c874fded1ad;hpb=325cb4833db7e3fd396720f12a27b880b63f4173;p=quix0rs-gnu-social.git diff --git a/actions/newapplication.php b/actions/newapplication.php index 657c7bcb71..ca5d902a26 100644 --- a/actions/newapplication.php +++ b/actions/newapplication.php @@ -109,6 +109,7 @@ class NewApplicationAction extends OwnerDesignAction // CSRF protection $token = $this->trimmed('token'); 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.')); return; } @@ -294,8 +295,9 @@ class NewApplicationAction extends OwnerDesignAction $app->uploadLogo(); } catch (Exception $e) { $app->query('ROLLBACK'); + // TRANS: Form validation error on New application page when providing an invalid image upload. $this->showForm(_('Invalid image.')); - return; + return; } $app->query('COMMIT');