forked from Ponysearch/Ponysearch
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
1 changed files with 0 additions and 4 deletions
|
@ -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 a new issue