]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/deleteapplication.php
instanceof checks for better typing
[quix0rs-gnu-social.git] / actions / deleteapplication.php
index 9f9ac18971f972ec945c4011779659e4133e9dc3..763d58c762992a2efddc493508b71dc773844bd6 100644 (file)
@@ -64,7 +64,7 @@ class DeleteapplicationAction extends Action
         }
 
         $id        = (int)$this->arg('id');
-        $this->app = Oauth_application::staticGet('id', $id);
+        $this->app = Oauth_application::getKV('id', $id);
 
         if (empty($this->app)) {
             // TRANS: Client error displayed trying to delete an application that does not exist.
@@ -99,6 +99,7 @@ class DeleteapplicationAction extends Action
             // 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;
             }