mirror of
https://github.com/searxng/searxng
synced 2024-11-18 15:26:25 +00:00
Remove get local from request.args
args parameters are merged in form in pre_request, so this patch removes that useless operation.
This commit is contained in:
parent
8189b0d192
commit
a818d3241d
@ -157,10 +157,6 @@ def get_locale():
|
||||
if request.preferences.get_value('locale') != '':
|
||||
locale = request.preferences.get_value('locale')
|
||||
|
||||
if 'locale' in request.args\
|
||||
and request.args['locale'] in settings['locales']:
|
||||
locale = request.args['locale']
|
||||
|
||||
if 'locale' in request.form\
|
||||
and request.form['locale'] in settings['locales']:
|
||||
locale = request.form['locale']
|
||||
|
Loading…
Reference in New Issue
Block a user