]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newapplication.php
Merge branch 'lists_fixes' into 1.0.x
[quix0rs-gnu-social.git] / actions / newapplication.php
index 657c7bcb71c4b3a64422708c311d7c874fded1ad..ca5d902a268d1f7bd2ab8d09c2546b15aa17ce67 100644 (file)
@@ -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');