[minor] if frappe.form_dict._lang, set it as local.lang
This commit is contained in:
parent
e7fbaeb060
commit
ff773bc659
1 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ class HTTPRequest:
|
|||
# login
|
||||
frappe.local.login_manager = LoginManager()
|
||||
|
||||
if frappe.form_dict._lang:
|
||||
frappe.local.lang = frappe.form_dict._lang
|
||||
|
||||
self.validate_csrf_token()
|
||||
|
||||
# write out latest cookies
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue