[bridges] fix typo in getSimpleHTMLDOM call

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-21 19:23:35 +02:00
parent 09bc211cc6
commit b97317af2e
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class KoreusBridge extends BridgeAbstract{
}
private function KoreusExtractContent($url) {
$html2 = $this->getSimpeHTMLDOM($url);
$html2 = $this->getSimpleHTMLDOM($url);
$text = $html2->find('p[class=itemText]', 0)->innertext;
$text = utf8_encode(preg_replace('/(Sur le m.+?)+$/i','',$text));
return $text;

View file

@ -93,7 +93,7 @@ class KununuBridge extends BridgeAbstract{
$this->uri .= "/{$site}/{$company}/{$section}";
// Load page
$html = $this->getSimplHTMLDOM($this->uri);
$html = $this->getSimpleHTMLDOM($this->uri);
if($html === false)
$this->returnServerError('Unable to receive data from ' . $this->uri . '!');

View file

@ -15,7 +15,7 @@ class LeJournalDuGeekBridge extends BridgeAbstract{
}
private function LeJournalDuGeekExtractContent($url) {
$articleHTMLContent = $this->getSimpleHMLDOM($url);
$articleHTMLContent = $this->getSimpleHTMLDOM($url);
$text = $articleHTMLContent->find('div.post-content', 0)->innertext;
foreach($articleHTMLContent->find('a.more') as $element) {