Permalink
Browse files

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

…n language urls)
  • Loading branch information...
bercab committed Aug 20, 2012
1 parent 4605250 commit f388d7c11efbed068ee9c48e713af2a56edb50ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit f388d7c

Please sign in to comment.