diff options
author | Sarven Capadisli <csarven@status.net> | 2009-11-02 14:53:31 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-11-02 14:53:31 +0000 |
commit | 8a07c7d7c021693271d1856f15dfe0abd9461d5d (patch) | |
tree | 1846465919fd94a2056c0154782d687242285fd6 /plugins/SimpleUrl/SimpleUrlPlugin.php | |
parent | ebd604cf6b6fda6823437cafc1d2db3eb23d9f41 (diff) | |
parent | fa37967858c3c29000797e510e5f98aca8ab558f (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/SimpleUrl/SimpleUrlPlugin.php')
-rw-r--r-- | plugins/SimpleUrl/SimpleUrlPlugin.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/SimpleUrl/SimpleUrlPlugin.php b/plugins/SimpleUrl/SimpleUrlPlugin.php index 82d772048..d59d63e47 100644 --- a/plugins/SimpleUrl/SimpleUrlPlugin.php +++ b/plugins/SimpleUrl/SimpleUrlPlugin.php @@ -65,15 +65,6 @@ class SimpleUrlPlugin extends Plugin class SimpleUrl extends ShortUrlApi { protected function shorten_imp($url) { - $curlh = curl_init(); - curl_setopt($curlh, CURLOPT_CONNECTTIMEOUT, 20); // # seconds to wait - curl_setopt($curlh, CURLOPT_USERAGENT, 'StatusNet'); - curl_setopt($curlh, CURLOPT_RETURNTRANSFER, true); - - curl_setopt($curlh, CURLOPT_URL, $this->service_url.urlencode($url)); - $short_url = curl_exec($curlh); - - curl_close($curlh); - return $short_url; + return $this->http_get($url); } } |