diff options
author | cash <cash.costello@gmail.com> | 2011-06-24 14:55:59 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-06-24 14:55:59 -0400 |
commit | f44e7b8a6bad84423cf0e3dae700675c037d2d51 (patch) | |
tree | 9454b9bc0f170932191b84e11c388ceb703d35db /mod/twitter_api/lib/twitter_api.php | |
parent | 870063759d4f820a841da2a1cf5953d71e7f9f42 (diff) | |
download | elgg-f44e7b8a6bad84423cf0e3dae700675c037d2d51.tar.gz elgg-f44e7b8a6bad84423cf0e3dae700675c037d2d51.tar.bz2 |
fixes the authorization to post so that it does not include login
Diffstat (limited to 'mod/twitter_api/lib/twitter_api.php')
-rw-r--r-- | mod/twitter_api/lib/twitter_api.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/twitter_api/lib/twitter_api.php b/mod/twitter_api/lib/twitter_api.php index 0621c2b13..145b37114 100644 --- a/mod/twitter_api/lib/twitter_api.php +++ b/mod/twitter_api/lib/twitter_api.php @@ -243,7 +243,6 @@ function twitter_api_authorize() { ), 'limit' => 0 ); - $users = elgg_get_entities_from_plugin_user_settings($options); if ($users) { @@ -281,11 +280,11 @@ function twitter_api_revoke() { } /** - * Returns the url to authorize a user. + * Gets the url to authorize a user. * * @param string $callback The callback URL */ -function twitter_api_get_authorize_url($callback = NULL) { +function twitter_api_get_authorize_url($callback = NULL, $login = true) { global $SESSION; elgg_load_library('twitter_oauth'); @@ -302,7 +301,7 @@ function twitter_api_get_authorize_url($callback = NULL) { 'oauth_token_secret' => $token['oauth_token_secret'], ); - return $twitter->getAuthorizeURL($token['oauth_token']); + return $twitter->getAuthorizeURL($token['oauth_token'], $login); } /** |