mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01: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') != '':
|
if request.preferences.get_value('locale') != '':
|
||||||
locale = 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\
|
if 'locale' in request.form\
|
||||||
and request.form['locale'] in settings['locales']:
|
and request.form['locale'] in settings['locales']:
|
||||||
locale = request.form['locale']
|
locale = request.form['locale']
|
||||||
|
Loading…
Reference in New Issue
Block a user