diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-09-29 00:39:45 +0200 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-09-29 00:39:45 +0200 |
commit | b9177f5e2e3f9697ef1d2863c827d03154ff828e (patch) | |
tree | 72cc03eb9fa2cad6998e62857651e6a24e6c6c06 /lib/apioauthstore.php | |
parent | 9587f9f55b55d2819f9ba57f7befd165ab842fa6 (diff) |
* i18n/L10n and translator documentation updates.
* whitespace and indentation updates
Diffstat (limited to 'lib/apioauthstore.php')
-rw-r--r-- | lib/apioauthstore.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/apioauthstore.php b/lib/apioauthstore.php index 01116ad3e..eca93866f 100644 --- a/lib/apioauthstore.php +++ b/lib/apioauthstore.php @@ -149,7 +149,6 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore // Okay, good return new OAuthToken($at->tok, $at->secret); } - } else { return null; } @@ -173,10 +172,12 @@ 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.')); } + if (!$rt->delete()) { // TRANS: Exception thrown when an attempt is made to remove a revoked token. throw new Exception(_('Failed to delete revoked token.')); |