]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/apioauthstore.php
some of the ensureTable stuff partially working
[quix0rs-gnu-social.git] / lib / apioauthstore.php
index 84c4c78e53568fb206649914ddfbf97baff1e8ca..eca93866f002bc982c53aea354d88f2847ebd917 100644 (file)
@@ -149,7 +149,6 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore
                 // Okay, good
                 return new OAuthToken($at->tok, $at->secret);
             }
-
         } else {
             return null;
         }
@@ -173,13 +172,15 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore
         $rt->tok = $token_key;
         $rt->type = $type;
         $rt->state = 0;
+
         if (!$rt->find(true)) {
             // TRANS: Exception thrown when an attempt is made to revoke an unknown token.
-            throw new Exception(_('Tried to revoke unknown token'));
+            throw new Exception(_('Tried to revoke unknown token.'));
         }
+
         if (!$rt->delete()) {
             // TRANS: Exception thrown when an attempt is made to remove a revoked token.
-            throw new Exception(_('Failed to delete revoked token'));
+            throw new Exception(_('Failed to delete revoked token.'));
         }
     }
 }