[various] Move optional token parameter at the end of OAuthRequest::from_consumer_and_token() function definition #975

Merged
MrPetovan merged 2 commits from bug/8511-lib-oauth1-token-parameter into develop 2020-04-25 19:54:59 +02:00
Showing only changes of commit 2a3689976e - Show all commits

View file

@ -234,7 +234,7 @@ class TumblrOAuth
$url = "{$this->host}{$url}"; $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); $request->sign_request($this->sha1_method, $this->consumer, $this->token);
switch ($method) { switch ($method) {
case 'GET': case 'GET':