diff --git a/bridges/DuckDuckGoBridge.php b/bridges/DuckDuckGoBridge.php index 1ca33bb9..29719a91 100644 --- a/bridges/DuckDuckGoBridge.php +++ b/bridges/DuckDuckGoBridge.php @@ -13,10 +13,8 @@ class DuckDuckGoBridge extends BridgeAbstract{ )); public function collectData(){ - $html = ''; - $link = 'http://duckduckgo.com/html/?q='.$this->getInput('u').'+sort:date'; - - $html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request DuckDuckGo.'); + $html = $this->getSimpleHTMLDOM($this->uri.'html/?q='.$this->getInput('u').'+sort:date') + or $this->returnServerError('Could not request DuckDuckGo.'); foreach($html->find('div.results_links') as $element) { $item = array();