diff options
author | cash <cash.costello@gmail.com> | 2013-04-14 21:03:55 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-04-14 21:03:55 -0400 |
commit | 53c0783cdf59d7320233b79b7bb2b019bdfbd33a (patch) | |
tree | f9f3c074c3c456b133f4d4805ca28e3c1b276fdc /mod/twitter_api | |
parent | e96a2e9b8ec370a53900a82847502cee763277d3 (diff) | |
download | elgg-53c0783cdf59d7320233b79b7bb2b019bdfbd33a.tar.gz elgg-53c0783cdf59d7320233b79b7bb2b019bdfbd33a.tar.bz2 |
Fixes #4917 Using twitter API v1.1
Diffstat (limited to 'mod/twitter_api')
-rw-r--r-- | mod/twitter_api/lib/twitter_api.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/twitter_api/lib/twitter_api.php b/mod/twitter_api/lib/twitter_api.php index 1299232c0..8cb1b885e 100644 --- a/mod/twitter_api/lib/twitter_api.php +++ b/mod/twitter_api/lib/twitter_api.php @@ -20,6 +20,9 @@ function twitter_api_get_api_object($oauth_token = null, $oauth_token_secret = n } $api = new TwitterOAuth($consumer_key, $consumer_secret, $oauth_token, $oauth_token_secret); + if ($api) { + $api->host = "https://api.twitter.com/1.1/"; + } return $api; } |