Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

Merge commit 'refs/pull/1621/head' of https://github.com/asciimoo/searx

Markus Heiser7c79eb9b1b05
diff --cc searx/webapp.py
index fd34a9ef4,542c2c002..a856c07dd
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@@ -637,11 -611,10 +656,11 @@@ def index()
unresponsive_engines=result_container.unresponsive_engines,
current_language=match_language(search_query.lang,
LANGUAGE_CODES,
- fallback=settings['search']['language']),
+ fallback=request.preferences.get_value("language")),
base_url=get_base_url(),
theme=get_current_theme_name(),
- favicons=global_favicons[themes.index(get_current_theme_name())]
+ favicons=global_favicons[themes.index(get_current_theme_name())],
+ timeout_limit=request.form.get('timeout_limit', None)
)
@@@ -757,9 -720,9 +776,9 @@@ def preferences()
return render('preferences.html',
locales=settings['locales'],
- current_locale=get_locale(),
+ current_locale=request.preferences.get_value("locale"),
image_proxy=image_proxy,
- engines_by_category=categories,
+ engines_by_category=engines_by_category,
stats=stats,
answerers=[{'info': a.self_info(), 'keywords': a.keywords} for a in answerers],
disabled_engines=disabled_engines,