From 8e32142ce54a3dd7538ec3f8aab584bc8d8e0f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 21 Aug 2016 19:48:23 +0200 Subject: [PATCH] [bridges] fix typo in getSimpleHTMLDOM call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/MsnMondeBridge.php | 2 +- bridges/NextInpactBridge.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/MsnMondeBridge.php b/bridges/MsnMondeBridge.php index f3620a29..14d9a65d 100644 --- a/bridges/MsnMondeBridge.php +++ b/bridges/MsnMondeBridge.php @@ -9,7 +9,7 @@ class MsnMondeBridge extends BridgeAbstract{ } private function MsnMondeExtractContent($url, &$item) { - $html2 = $this->getSimpleHTLDOM($url); + $html2 = $this->getSimpleHTMLDOM($url); $item->content = $html2->find('#content', 0)->find('article', 0)->find('section', 0)->plaintext; $item->timestamp = strtotime($html2->find('.authorinfo-txt', 0)->find('time', 0)->datetime); } diff --git a/bridges/NextInpactBridge.php b/bridges/NextInpactBridge.php index bef9e193..1c1186df 100644 --- a/bridges/NextInpactBridge.php +++ b/bridges/NextInpactBridge.php @@ -15,7 +15,7 @@ class NextInpactBridge extends BridgeAbstract { } private function ExtractContent($url) { - $html2 = $this->getSimpleHTLDOM($url); + $html2 = $this->getSimpleHTMLDOM($url); $text = '

'.$html2->find('span.sub_title', 0)->innertext.'

' .'

-

' .'
'.$html2->find('div[itemprop=articleBody]', 0)->innertext.'
';