Permalink
Browse files

Pointing trends endpoints to api host.

Closes GH-106
  • Loading branch information...
1 parent a6a1737 commit cdf15c13a05389eb8d7745390bb46b853389e945 @jmathai committed Apr 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 EpiTwitter.php
View
@@ -103,7 +103,7 @@ public function __call($name, $params = null/*, $username, $password*/)
private function getApiUrl($endpoint)
{
- if(preg_match('@^/(trends|search)[./]?(?=(json|daily|current|weekly))@', $endpoint))
+ if(preg_match('@^/search[./]?(?=(json|daily|current|weekly))@', $endpoint))
return "{$this->searchUrl}{$endpoint}";
elseif(!empty($this->apiVersion))
return "{$this->apiVersionedUrl}/{$this->apiVersion}{$endpoint}";

0 comments on commit cdf15c1

Please sign in to comment.