1
0
Fork 0
forked from blallo/rss-bridge

Corrected mistake in Wikipedia FR bridge if using absolute links

This commit is contained in:
gsurrel 2014-01-02 11:43:21 +01:00
parent d7e2d65ff7
commit 02c7b2be87

View file

@ -21,7 +21,7 @@ class WikipediaFRBridge extends BridgeAbstract{
$item = new \Item(); $item = new \Item();
$item->uri = $host.$element->find('p', 0)->find('a', 0)->href; $item->uri = $host.$element->find('p', 0)->find('a', 0)->href;
$item->title = $element->find('p',0)->find('a',0)->title; $item->title = $element->find('p',0)->find('a',0)->title;
$item->content = str_replace('href="', 'href="'.$host, $element->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; $this->items[] = $item;
} }