From d530415481986741ca3a5ce30275aaf148684a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Thu, 25 Aug 2016 00:11:24 +0200 Subject: [PATCH] [CpasbienBridge] use SimpleHTMLDOM str_get_html function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/CpasbienBridge.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/bridges/CpasbienBridge.php b/bridges/CpasbienBridge.php index 1f47045..6c3b785 100644 --- a/bridges/CpasbienBridge.php +++ b/bridges/CpasbienBridge.php @@ -1,19 +1,4 @@ MAX_FILE_SIZE) - { - return false; - } - // The second parameter can force the selectors to all be lowercase. - $dom->load($contents, $lowercase, $stripRN); - return $dom; -} - class CpasbienBridge extends HttpCachingBridgeAbstract{ private $request; @@ -51,7 +36,7 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{ if ($episode->getAttribute('class')=='ligne0' || $episode->getAttribute('class')=='ligne1') { - $htmlepisode=content_get_html($this->get_cached($episode->find('a', 0)->getAttribute('href'))); + $htmlepisode=str_get_html($this->get_cached($episode->find('a', 0)->getAttribute('href'))); $item = array(); $item['author'] = $episode->find('a', 0)->text();