From 47dd6c3b03abc3d02a8465152da0356f507609e4 Mon Sep 17 00:00:00 2001 From: ORelio Date: Wed, 3 Feb 2016 20:36:16 +0100 Subject: [PATCH] [LeMondeInformatique] fix title stripping Title wasn't properly stripped due to changes on their website. --- bridges/LeMondeInformatiqueBridge.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/bridges/LeMondeInformatiqueBridge.php b/bridges/LeMondeInformatiqueBridge.php index a0c16b2b..e2ba4636 100644 --- a/bridges/LeMondeInformatiqueBridge.php +++ b/bridges/LeMondeInformatiqueBridge.php @@ -1,15 +1,15 @@ maintainer = "ORelio"; - $this->name = "Le Monde Informatique"; - $this->uri = "http://www.lemondeinformatique.fr/"; - $this->description = "Returns the newest articles."; - $this->update = "2015-09-08"; + $this->maintainer = "ORelio"; + $this->name = "Le Monde Informatique"; + $this->uri = "http://www.lemondeinformatique.fr/"; + $this->description = "Returns the newest articles."; + $this->update = "2016-01-28"; - } + } public function collectData(array $param) { @@ -29,7 +29,7 @@ class LeMondeInformatiqueBridge extends BridgeAbstract { function CleanArticle($article_html) { $article_html = StripWithDelimiters($article_html, ''); - $article_html = StripWithDelimiters($article_html, '

', '

'); + $article_html = StripWithDelimiters($article_html, '

'); return $article_html; } @@ -73,6 +73,5 @@ class LeMondeInformatiqueBridge extends BridgeAbstract { public function getCacheDuration() { return 1800; // 30 minutes - // return 0; } }