Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dailymotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function getAuthorizationUrl($display = self::DISPLAY_PAGE)
'scope' => implode(chr(32), $this->grantInfo['scope']),
'display' => $display,
),
null,
'',
'&'
);
}
Expand Down Expand Up @@ -750,7 +750,7 @@ protected function storeSession(array $session = array())
$cookieName = sprintf(self::SESSION_COOKIE, $this->grantInfo['key']);
if (!empty($session))
{
$value = '"' . http_build_query($session, null, '&') . '"';
$value = '"' . http_build_query($session, '', '&') . '"';
$expires = time() + $this->cookieLifeTime;
}
else
Expand Down Expand Up @@ -888,7 +888,7 @@ protected function oauthRequest($url, $payload, $accessToken = null, $headers =
protected function httpRequest($url, $payload = null, $headers = null, &$statusCode = null, &$responseHeaders = array(), $encodePayload = false)
{
$payload = (is_array($payload) && (true === $encodePayload))
? http_build_query($payload, null, '&')
? http_build_query($payload, '', '&')
: $payload;

// Force removal of the Expect: 100-continue header automatically added by cURL
Expand Down Expand Up @@ -1008,7 +1008,7 @@ protected function getCurrentUrl()
}
if (count($parameters) > 0)
{
$query = '?' . http_build_query($parameters, null, '&');
$query = '?' . http_build_query($parameters, '', '&');
}
}
// Use port if non default
Expand Down