diff options
author | RiverVanRain <river.vanrain@gmail.com> | 2012-11-14 14:15:06 +0300 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-14 10:09:24 -0500 |
commit | a9b4cd53032222b65bcd8e2692ac5337c12e94a3 (patch) | |
tree | 750e8b6c493fee44ebcb7ea23ab55955ba27d02b /mod/twitter_api/vendors/twitteroauth/OAuth.php | |
parent | f760ea1880bbeb46b210aa797d480dcef1a8f49e (diff) | |
download | elgg-a9b4cd53032222b65bcd8e2692ac5337c12e94a3.tar.gz elgg-a9b4cd53032222b65bcd8e2692ac5337c12e94a3.tar.bz2 |
Fixes #4916: Twitter API request token
Diffstat (limited to 'mod/twitter_api/vendors/twitteroauth/OAuth.php')
-rw-r--r-- | mod/twitter_api/vendors/twitteroauth/OAuth.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/twitter_api/vendors/twitteroauth/OAuth.php b/mod/twitter_api/vendors/twitteroauth/OAuth.php index b0e3cfd5e..e132a5bc8 100644 --- a/mod/twitter_api/vendors/twitteroauth/OAuth.php +++ b/mod/twitter_api/vendors/twitteroauth/OAuth.php @@ -78,6 +78,7 @@ class twitterOAuthRequest extends OAuthRequest { private $http_url; // for debug purposes public $base_string; + public static $version = '1.0'; public static $POST_INPUT = 'php://input'; function __construct($http_method, $http_url, $parameters=NULL) { @@ -145,7 +146,7 @@ class twitterOAuthRequest extends OAuthRequest { */ public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters=NULL) { @$parameters or $parameters = array(); - $defaults = array("oauth_version" => '1.0', + $defaults = array("oauth_version" => twitterOAuthRequest::$version, "oauth_nonce" => twitterOAuthRequest::generate_nonce(), "oauth_timestamp" => twitterOAuthRequest::generate_timestamp(), "oauth_consumer_key" => $consumer->key); |