[bridges] fix typo in getSimpleHTMLDOM call
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
09bc211cc6
commit
b97317af2e
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ class KoreusBridge extends BridgeAbstract{
|
||||||
}
|
}
|
||||||
|
|
||||||
private function KoreusExtractContent($url) {
|
private function KoreusExtractContent($url) {
|
||||||
$html2 = $this->getSimpeHTMLDOM($url);
|
$html2 = $this->getSimpleHTMLDOM($url);
|
||||||
$text = $html2->find('p[class=itemText]', 0)->innertext;
|
$text = $html2->find('p[class=itemText]', 0)->innertext;
|
||||||
$text = utf8_encode(preg_replace('/(Sur le m.+?)+$/i','',$text));
|
$text = utf8_encode(preg_replace('/(Sur le m.+?)+$/i','',$text));
|
||||||
return $text;
|
return $text;
|
||||||
|
|
|
@ -93,7 +93,7 @@ class KununuBridge extends BridgeAbstract{
|
||||||
$this->uri .= "/{$site}/{$company}/{$section}";
|
$this->uri .= "/{$site}/{$company}/{$section}";
|
||||||
|
|
||||||
// Load page
|
// Load page
|
||||||
$html = $this->getSimplHTMLDOM($this->uri);
|
$html = $this->getSimpleHTMLDOM($this->uri);
|
||||||
if($html === false)
|
if($html === false)
|
||||||
$this->returnServerError('Unable to receive data from ' . $this->uri . '!');
|
$this->returnServerError('Unable to receive data from ' . $this->uri . '!');
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ class LeJournalDuGeekBridge extends BridgeAbstract{
|
||||||
}
|
}
|
||||||
|
|
||||||
private function LeJournalDuGeekExtractContent($url) {
|
private function LeJournalDuGeekExtractContent($url) {
|
||||||
$articleHTMLContent = $this->getSimpleHMLDOM($url);
|
$articleHTMLContent = $this->getSimpleHTMLDOM($url);
|
||||||
$text = $articleHTMLContent->find('div.post-content', 0)->innertext;
|
$text = $articleHTMLContent->find('div.post-content', 0)->innertext;
|
||||||
|
|
||||||
foreach($articleHTMLContent->find('a.more') as $element) {
|
foreach($articleHTMLContent->find('a.more') as $element) {
|
||||||
|
|
Loading…
Reference in a new issue