Browse Source

[LesJoiesDuCodeBridge] code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Pierre Mazière 7 years ago
parent
commit
01e0f2f77a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bridges/LesJoiesDuCodeBridge.php

+ 2 - 1
bridges/LesJoiesDuCodeBridge.php

@@ -7,7 +7,8 @@ class LesJoiesDuCodeBridge extends BridgeAbstract{
 	public $description = "LesJoiesDuCode";
 
     public function collectData(){
-        $html = $this->getSimpleHTMLDOM('http://lesjoiesducode.fr/') or $this->returnServerError('Could not request LesJoiesDuCode.');
+        $html = $this->getSimpleHTMLDOM($this->uri)
+            or $this->returnServerError('Could not request LesJoiesDuCode.');
 
         foreach($html->find('div.blog-post') as $element) {
             $item = array();