summaryrefslogtreecommitdiff
path: root/searx/engines/mediawiki.py
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2019-01-06 15:27:46 +0100
committerNoémi Ványi <sitbackandwait@gmail.com>2019-01-07 21:19:00 +0100
commitb63d645a52d663036b97e31a59818d79faa4da81 (patch)
tree6ba72217200a0f52f82ba8244afbee19c24d098c /searx/engines/mediawiki.py
parent491792c1a58f71083f6af663bb6d93e40fa44c9f (diff)
downloadsearxng-b63d645a52d663036b97e31a59818d79faa4da81.tar.gz
searxng-b63d645a52d663036b97e31a59818d79faa4da81.zip
Revert "remove 'all' option from search languages"
This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796.
Diffstat (limited to 'searx/engines/mediawiki.py')
-rw-r--r--searx/engines/mediawiki.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/engines/mediawiki.py b/searx/engines/mediawiki.py
index c7b05ffcd..0607ac93b 100644
--- a/searx/engines/mediawiki.py
+++ b/searx/engines/mediawiki.py
@@ -45,7 +45,10 @@ def request(query, params):
format_strings = list(Formatter().parse(base_url))
- language = params['language'].split('-')[0]
+ if params['language'] == 'all':
+ language = 'en'
+ else:
+ language = params['language'].split('-')[0]
# format_string [('https://', 'language', '', None), ('.wikipedia.org/', None, None, None)]
if any(x[1] == 'language' for x in format_strings):