diff --git a/statusnet/library/twitteroauth.php b/statusnet/library/twitteroauth.php index 860a74b6c..5ac2ab12a 100644 --- a/statusnet/library/twitteroauth.php +++ b/statusnet/library/twitteroauth.php @@ -236,7 +236,7 @@ class TwitterOAuth $url = "{$this->host}{$url}.{$this->format}"; } - $request = OAuthRequest::from_consumer_and_token($this->consumer, $this->token, $method, $url, $parameters); + $request = OAuthRequest::from_consumer_and_token($this->consumer, $method, $url, $parameters, $this->token); $request->sign_request($this->sha1_method, $this->consumer, $this->token); switch ($method) { case 'GET': diff --git a/tumblr/library/tumblroauth.php b/tumblr/library/tumblroauth.php index 782c6b4bb..4e21a6ab0 100644 --- a/tumblr/library/tumblroauth.php +++ b/tumblr/library/tumblroauth.php @@ -234,7 +234,7 @@ class TumblrOAuth $url = "{$this->host}{$url}"; } - $request = OAuthRequest::from_consumer_and_token($this->consumer, $this->token, $method, $url, $parameters); + $request = OAuthRequest::from_consumer_and_token($this->consumer, $method, $url, $parameters, $this->token); $request->sign_request($this->sha1_method, $this->consumer, $this->token); switch ($method) { case 'GET':