fix resetting session lang if unset
This commit is contained in:
parent
8de390b6f9
commit
237640f0d7
@ -60,7 +60,7 @@ def detect_language():
|
|||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
# reset language
|
# reset language
|
||||||
s.pop('lang')
|
s.pop('lang', None)
|
||||||
lang = s.get('lang')
|
lang = s.get('lang')
|
||||||
if lang:
|
if lang:
|
||||||
lang = lang.strip().lower()
|
lang = lang.strip().lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user