diff options
author | Zach Copley <zach@status.net> | 2010-10-20 17:28:28 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-10-20 17:28:28 -0700 |
commit | bfdb8385ecc745002b8c45510caf2fdf7c2d2c9f (patch) | |
tree | 392196b097fafb10430bb7db763fd744a0639bf3 /lib/apioauthstore.php | |
parent | e56385a7bb25336a72c1d37ad43d51ba8e238231 (diff) | |
parent | 31f52ec37c5a2be76c197a9c492d3a236af045cd (diff) |
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Conflicts:
actions/apioauthauthorize.php
lib/apioauthstore.php
Diffstat (limited to 'lib/apioauthstore.php')
-rw-r--r-- | lib/apioauthstore.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/apioauthstore.php b/lib/apioauthstore.php index 9a2608263..6b9b97756 100644 --- a/lib/apioauthstore.php +++ b/lib/apioauthstore.php @@ -41,7 +41,8 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore $result = $con->insert(); if (!$result) { - $this->serverError(_("Could not create anonymous consumer.")); + // TRANS: Server error displayed when trying to create an anynymous OAuth consumer. + $this->serverError(_('Could not create anonymous consumer.')); } $app = Oauth_application::getByConsumerKey('anonymous'); @@ -65,6 +66,7 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore $id = $app->insert(); if (!$id) { + // TRANS: Server error displayed when trying to create an anynymous OAuth application. $this->serverError(_("Could not create anonymous OAuth application.")); } } @@ -296,7 +298,6 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore * * @return OAuthToken $token a new unauthorized OAuth request token */ - function new_request_token($consumer, $callback) { $t = new Token(); @@ -321,6 +322,4 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore return new OAuthToken($t->tok, $t->secret); } } - - } |