forked from blallo/rss-bridge
[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) {
|
||||
$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;
|
||||
|
|
|
@ -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 . '!');
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue