summaryrefslogtreecommitdiff
path: root/actions/apioauthauthorize.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-28 01:19:04 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-28 01:21:21 +0200
commit04ae500749ea2e5937ac1f28ef8c7edf4f99f0a1 (patch)
tree030549cd14592ca2f07c16babee27f0d67ddcf4a /actions/apioauthauthorize.php
parenta12474a99d0322123b1c8318dfa609d5d5392c7f (diff)
* i18n/L10n fixes.
* translator documentation updated. * superfluous whitespace removed.
Diffstat (limited to 'actions/apioauthauthorize.php')
-rw-r--r--actions/apioauthauthorize.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/actions/apioauthauthorize.php b/actions/apioauthauthorize.php
index e0c9ff244..7b66bbb37 100644
--- a/actions/apioauthauthorize.php
+++ b/actions/apioauthauthorize.php
@@ -144,6 +144,7 @@ class ApiOauthAuthorizeAction extends Action
if (!$token || $token != common_session_token()) {
$this->showForm(
+ // TRANS: Form validation error in API OAuth authorisation because of an invalid session token.
_('There was a problem with your session token. Try again, please.'));
return;
}
@@ -177,7 +178,6 @@ class ApiOauthAuthorizeAction extends Action
assert(!empty($this->reqToken));
if ($this->arg('allow')) {
-
// mark the req token as authorized
try {
$this->store->authorize_token($this->oauthTokenParam);
@@ -250,9 +250,7 @@ class ApiOauthAuthorizeAction extends Action
// Otherwise, inform the user that the rt was authorized
$this->showAuthorized();
-
} else if ($this->arg('cancel')) {
-
common_log(
LOG_INFO,
sprintf(
@@ -652,7 +650,6 @@ class ApiOauthAuthorizeAction extends Action
);
$pin->showPage();
} else {
-
// NOTE: This would only happen if an application registered as
// a web application but sent in 'oob' for the oauth_callback
// parameter. Usually web apps will send in a callback and
@@ -693,7 +690,6 @@ class ApiOauthAuthorizeAction extends Action
$callback = $this->app->callback_url;
}
-
}
return $callback;