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