summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/twitteroauthclient.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-01-27 17:39:03 -0800
committerBrion Vibber <brion@pobox.com>2010-01-27 17:39:03 -0800
commit0794ecf372ffff2e0cc93509ae3462ca0cbbc99c (patch)
tree79695c758dc0e919b5cbcaaf1260125f3e97c4a2 /plugins/TwitterBridge/twitteroauthclient.php
parent2e0297bb6ff0fd2d3a37d811bd3305ce5d6a77ee (diff)
parent07d50a012af70d9bd35a26f645d791ae7ba29986 (diff)
Merge branch 'testing' of gitorious.org:statusnet/mainline
Diffstat (limited to 'plugins/TwitterBridge/twitteroauthclient.php')
-rw-r--r--plugins/TwitterBridge/twitteroauthclient.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/TwitterBridge/twitteroauthclient.php b/plugins/TwitterBridge/twitteroauthclient.php
index bad2b74ca..277e7ab40 100644
--- a/plugins/TwitterBridge/twitteroauthclient.php
+++ b/plugins/TwitterBridge/twitteroauthclient.php
@@ -45,6 +45,7 @@ class TwitterOAuthClient extends OAuthClient
{
public static $requestTokenURL = 'https://twitter.com/oauth/request_token';
public static $authorizeURL = 'https://twitter.com/oauth/authorize';
+ public static $signinUrl = 'https://twitter.com/oauth/authenticate';
public static $accessTokenURL = 'https://twitter.com/oauth/access_token';
/**
@@ -97,9 +98,11 @@ class TwitterOAuthClient extends OAuthClient
*
* @return the link
*/
- function getAuthorizeLink($request_token)
+ function getAuthorizeLink($request_token, $signin = false)
{
- return parent::getAuthorizeLink(self::$authorizeURL,
+ $url = ($signin) ? self::$signinUrl : self::$authorizeURL;
+
+ return parent::getAuthorizeLink($url,
$request_token,
common_local_url('twitterauthorization'));
}