From 879bac8adb181593989a132fabd607f50096473a Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 29 Mar 2014 16:40:43 +0100 Subject: [PATCH] [fix] opensearch autocomplete --- searx/templates/opensearch.xml | 4 ++-- searx/webapp.py | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/searx/templates/opensearch.xml b/searx/templates/opensearch.xml index 403d18bb5..82f8225c0 100644 --- a/searx/templates/opensearch.xml +++ b/searx/templates/opensearch.xml @@ -6,7 +6,7 @@ searx metasearch {% if method == 'get' %} - {% if client.autocompleter %} + {% if autocomplete %} @@ -16,7 +16,7 @@ - {% if client.autocompleter %} + {% if autocomplete %} diff --git a/searx/webapp.py b/searx/webapp.py index bb6c66ab4..1058d9e65 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -350,7 +350,6 @@ def preferences(): return resp return render('preferences.html', - client=settings.get('client', None), locales=settings['locales'], current_locale=get_locale(), current_language=lang or 'all', @@ -369,7 +368,6 @@ def stats(): return render( 'stats.html', stats=stats, - client=settings.get('client', None) ) @@ -392,8 +390,7 @@ def opensearch(): ret = render('opensearch.xml', method=method, - host=get_base_url(), - client=settings['client']) + host=get_base_url()) resp = Response(response=ret, status=200,