diff --git a/bridges/CourrierInternationalBridge.php b/bridges/CourrierInternationalBridge.php index 634b88c..09d1aa6 100644 --- a/bridges/CourrierInternationalBridge.php +++ b/bridges/CourrierInternationalBridge.php @@ -3,16 +3,13 @@ class CourrierInternationalBridge extends BridgeAbstract{ public $maintainer = "teromene"; public $name = "Courrier International Bridge"; - public $uri = "http://CourrierInternational.fr/"; + public $uri = "http://CourrierInternational.com/"; public $description = "Courrier International bridge"; public function collectData(){ - $html = ''; - - $html = $this->getSimpleHTMLDOM('http://www.courrierinternational.com/') or $this->returnServerError('Error.'); - - + $html = $this->getSimpleHTMLDOM($this->uri) + or $this->returnServerError('Error.'); $element = $html->find("article"); @@ -25,7 +22,7 @@ class CourrierInternationalBridge extends BridgeAbstract{ $item['uri'] = $article->parent->getAttribute("href"); if(strpos($item['uri'], "http") === FALSE) { - $item['uri'] = "http://courrierinternational.fr/".$item['uri']; + $item['uri'] = $this->uri.$item['uri']; } $page = $this->getSimpleHTMLDOM($item['uri']);