Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix Multilingual middleware crash if request has no LANGUAGE_CODE (no…

…n language urls)
  • Loading branch information...
commit f388d7c11efbed068ee9c48e713af2a56edb50ed 1 parent 4605250
@bercab authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cms/middleware/multilingual.py
View
2  cms/middleware/multilingual.py
@@ -133,7 +133,7 @@ def process_response(self, request, response):
response.content = patch_response(
decoded_response,
pages_root,
- request.LANGUAGE_CODE
+ language
)
if response.status_code == 301 or response.status_code == 302:
Please sign in to comment.
Something went wrong with that request. Please try again.