X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnewapplication.php;h=23525ef32194471f20a6bc3c5ca6d94048cd3871;hb=0e439117a75698629c5066d0241ab41dc07b5ee1;hp=657c7bcb71c4b3a64422708c311d7c874fded1ad;hpb=a984aae56499466220b25c43c24637273005f4d7;p=quix0rs-gnu-social.git diff --git a/actions/newapplication.php b/actions/newapplication.php index 657c7bcb71..23525ef321 100644 --- a/actions/newapplication.php +++ b/actions/newapplication.php @@ -42,7 +42,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ -class NewApplicationAction extends OwnerDesignAction +class NewApplicationAction extends Action { var $msg; @@ -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 messages displayed when uploading an invalid application logo. $this->showForm(_('Invalid image.')); - return; + return; } $app->query('COMMIT');