From: Michael J. Rubinsky Date: Thu, 1 Jul 2010 00:53:06 +0000 (-0400) Subject: It helps if we actually *send* the GET parameters. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2caac32652ab7352058e6b53d2418674372f734b;p=horde.git It helps if we actually *send* the GET parameters. --- diff --git a/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php b/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php index b97783fea..2e9bd1878 100644 --- a/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php +++ b/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php @@ -31,8 +31,8 @@ class Horde_Service_Twitter_Request_Oauth extends Horde_Service_Twitter_Request /** * Perform a GET request with OAuth authorization. * - * @param string $url - * @param array $params + * @param mixed (string | Horde_Url) $url The url to request. + * @param array $params URL parameters. * * @return mixed Call results. */ @@ -48,6 +48,8 @@ class Horde_Service_Twitter_Request_Oauth extends Horde_Service_Twitter_Request $this->_twitter->auth->oauth, $this->_twitter->auth->getAccessToken()); $client = new Horde_Http_Client(); + $url = ($url instanceof Horde_Url) ? $url : new Horde_Url($url); + $url->add($params); try { $response = $client->get($url, array('Authorization' => $request->buildAuthorizationHeader('Twitter API'))); } catch (Horde_Http_Exception $e) {