From 44c3110db020a0693fac188a4d62522d92ce3c27 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Fri, 28 Apr 2017 19:15:23 +0200 Subject: [PATCH] WikipediaBridge: fix French Wikipedia --- bridges/WikipediaBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/WikipediaBridge.php b/bridges/WikipediaBridge.php index ed02494..17559b5 100644 --- a/bridges/WikipediaBridge.php +++ b/bridges/WikipediaBridge.php @@ -236,11 +236,11 @@ class WikipediaBridge extends BridgeAbstract { private function getContentsFr($html, $subject, $fullArticle){ switch($subject){ case WIKIPEDIA_SUBJECT_TFA: - $element = $html->find('div[id=accueil-lumieresur]', 0); + $element = $html->find('div[class=accueil_2017_cadre]', 0); $this->addTodaysFeaturedArticleGeneric($element, $fullArticle, 'Lire la suite'); break; case WIKIPEDIA_SUBJECT_DYK: - $element = $html->find('div[id=SaviezVous]', 0); + $element = $html->find('div[class=accueil_2017_cadre]', 2); $this->addDidYouKnowGeneric($element, $fullArticle); break; default: