Corrected mistake in Wikipedia FR bridge

This commit is contained in:
gsurrel 2014-01-02 11:42:02 +01:00
parent f01bc29f57
commit 5288756d04

View file

@ -21,7 +21,7 @@ class WikipediaFRBridge extends BridgeAbstract{
$item = new \Item();
$item->uri = $host.$element->find('p', 0)->find('a', 0)->href;
$item->title = $element->find('p',0)->find('a',0)->title;
$item->content = str_replace('href="', 'href="'.$host, $html->find('div[id=mf-lumieresur]', 0)->innertext);
$item->content = str_replace('href="', 'href="'.$host, $element->find('div[id=mf-lumieresur]', 0)->innertext);
$this->items[] = $item;
}
@ -34,6 +34,6 @@ class WikipediaFRBridge extends BridgeAbstract{
}
public function getCacheDuration(){
return 0*3600*4; // 4 hours
return 3600*4; // 4 hours
}
}