Commit 943fe6ca authored by Nicolas Gelot's avatar Nicolas Gelot

Remove get local from request.args

args parameters are merged in form in pre_request, so
this patch removes that useless operation.
parent b7f2ed0b
......@@ -156,12 +156,7 @@ 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']:
if 'locale' in request.form and request.form['locale'] in settings['locales']:
locale = request.form['locale']
if locale == 'zh_TW':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment