summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-06-08 10:14:00 +0200
committerAlexandre Flament <alex@al-f.net>2021-06-08 15:54:11 +0200
commitaedf0aa5feda5c7a944e7d057de7e948eaf84df5 (patch)
tree685324bfe13f24775f9b84197256d3fad0495d6d /searx/webapp.py
parenteeb0998787733c86dd5435f266e36d967b41708e (diff)
downloadsearxng-aedf0aa5feda5c7a944e7d057de7e948eaf84df5.tar.gz
searxng-aedf0aa5feda5c7a944e7d057de7e948eaf84df5.zip
[mod] remove searx.webapp.get_base_url function
see the result of: git grep "base_url" searx/templates "base_url" is not used any more.
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index db15c95cd..9c4c2a020 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -359,10 +359,6 @@ def extract_domain(url):
return urlparse(url)[1]
-def get_base_url():
- return url_for('index', _external=True)
-
-
def get_current_theme_name(override=None):
"""Returns theme name.
@@ -632,7 +628,6 @@ def index_error(output_format, error_message):
results=[],
q=request.form['q'] if 'q' in request.form else '',
number_of_results=0,
- base_url=get_base_url(),
error_message=error_message,
override_theme='__common__',
)
@@ -810,7 +805,6 @@ def search():
suggestions=result_container.suggestions,
q=request.form['q'],
number_of_results=number_of_results,
- base_url=get_base_url(),
override_theme='__common__',
)
return Response(response_rss, mimetype='text/xml')
@@ -848,7 +842,6 @@ def search():
current_language=match_language(search_query.lang,
LANGUAGE_CODES,
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())],
timeout_limit=request.form.get('timeout_limit', None)
@@ -1075,7 +1068,6 @@ def preferences():
allowed_plugins=allowed_plugins,
theme=get_current_theme_name(),
preferences_url_params=request.preferences.get_as_url_params(),
- base_url=get_base_url(),
locked_preferences=settings['preferences']['lock'],
preferences=True)