mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 23:29:56 +03:00
Revert "WikipediaBridge: Added russian version (#2184)"
Was buggy.
This reverts commit f7af2beb79
.
This commit is contained in:
parent
f7af2beb79
commit
534864f47b
1 changed files with 1 additions and 22 deletions
|
@ -17,7 +17,6 @@ class WikipediaBridge extends BridgeAbstract {
|
||||||
'exampleValue' => 'English',
|
'exampleValue' => 'English',
|
||||||
'values' => array(
|
'values' => array(
|
||||||
'English' => 'en',
|
'English' => 'en',
|
||||||
'Русский' => 'ru',
|
|
||||||
'Dutch' => 'nl',
|
'Dutch' => 'nl',
|
||||||
'Esperanto' => 'eo',
|
'Esperanto' => 'eo',
|
||||||
'French' => 'fr',
|
'French' => 'fr',
|
||||||
|
@ -267,27 +266,7 @@ class WikipediaBridge extends BridgeAbstract {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Implementation for ru.wikipedia.org
|
|
||||||
*/
|
|
||||||
private function getContentsEn($html, $subject, $fullArticle){
|
|
||||||
switch($subject) {
|
|
||||||
case WIKIPEDIA_SUBJECT_TFA:
|
|
||||||
$element = $html->find('div[id=mp-tfa]', 0);
|
|
||||||
$this->addTodaysFeaturedArticleGeneric($element, $fullArticle, -1);
|
|
||||||
break;
|
|
||||||
case WIKIPEDIA_SUBJECT_DYK:
|
|
||||||
$element = $html->find('div[id=mp-dyk]', 0);
|
|
||||||
$this->addDidYouKnowGeneric($element, $fullArticle);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation for eo.wikipedia.org
|
* Implementation for eo.wikipedia.org
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue