summaryrefslogtreecommitdiff
path: root/lib/apioauthstore.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-20 17:28:28 -0700
committerZach Copley <zach@status.net>2010-10-20 17:28:28 -0700
commitbfdb8385ecc745002b8c45510caf2fdf7c2d2c9f (patch)
tree392196b097fafb10430bb7db763fd744a0639bf3 /lib/apioauthstore.php
parente56385a7bb25336a72c1d37ad43d51ba8e238231 (diff)
parent31f52ec37c5a2be76c197a9c492d3a236af045cd (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.php7
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);
}
}
-
-
}