forked from blallo/rss-bridge
Merge pull request #521 from Frenzie/master
WikipediaBridge: fix French Wikipedia
This commit is contained in:
commit
c375ddd6ab
1 changed files with 2 additions and 2 deletions
|
@ -236,11 +236,11 @@ class WikipediaBridge extends BridgeAbstract {
|
||||||
private function getContentsFr($html, $subject, $fullArticle){
|
private function getContentsFr($html, $subject, $fullArticle){
|
||||||
switch($subject){
|
switch($subject){
|
||||||
case WIKIPEDIA_SUBJECT_TFA:
|
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');
|
$this->addTodaysFeaturedArticleGeneric($element, $fullArticle, 'Lire la suite');
|
||||||
break;
|
break;
|
||||||
case WIKIPEDIA_SUBJECT_DYK:
|
case WIKIPEDIA_SUBJECT_DYK:
|
||||||
$element = $html->find('div[id=SaviezVous]', 0);
|
$element = $html->find('div[class=accueil_2017_cadre]', 2);
|
||||||
$this->addDidYouKnowGeneric($element, $fullArticle);
|
$this->addDidYouKnowGeneric($element, $fullArticle);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue