aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bridges/WikipediaBridge.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/bridges/WikipediaBridge.php b/bridges/WikipediaBridge.php
index 51971887..1bdf2ddc 100644
--- a/bridges/WikipediaBridge.php
+++ b/bridges/WikipediaBridge.php
@@ -17,6 +17,7 @@ class WikipediaBridge extends BridgeAbstract {
'exampleValue' => 'English',
'values' => array(
'English' => 'en',
+ 'Русский' => 'ru',
'Dutch' => 'nl',
'Esperanto' => 'eo',
'French' => 'fr',
@@ -268,6 +269,24 @@ class WikipediaBridge extends BridgeAbstract {
}
/**
+ * Implementation for ru.wikipedia.org
+ */
+ private function getContentsRu($html, $subject, $fullArticle){
+ switch($subject) {
+ case WIKIPEDIA_SUBJECT_TFA:
+ $element = $html->find('div[id=main-tfa]', 0);
+ $this->addTodaysFeaturedArticleGeneric($element, $fullArticle, -1);
+ break;
+ case WIKIPEDIA_SUBJECT_DYK:
+ $element = $html->find('div[id=main-dyk]', 0);
+ $this->addDidYouKnowGeneric($element, $fullArticle);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
* Implementation for eo.wikipedia.org
*/
private function getContentsEo($html, $subject, $fullArticle){