Corrected mistake in Wikipedia FR bridge if using absolute links
This commit is contained in:
parent
d7e2d65ff7
commit
02c7b2be87
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue