]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4917 Using twitter API v1.1
authorcash <cash.costello@gmail.com>
Mon, 15 Apr 2013 01:03:55 +0000 (21:03 -0400)
committercash <cash.costello@gmail.com>
Mon, 15 Apr 2013 01:03:55 +0000 (21:03 -0400)
mod/twitter_api/lib/twitter_api.php

index 1299232c0205dd284e731b6d2db4042b2f86b2b1..8cb1b885e9c50128bc749e5b4d4de41f73ffef1f 100644 (file)
@@ -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;
 }