Skip to content

Commit

Permalink
#2601 address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers authored and mauromsl committed Nov 16, 2021
1 parent ebe554a commit 70f2a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/journal/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def process_request(request):
"""
Checks that the currently set language is okay for the current journal.
"""
if request.journal:
if request.journal and settings.USE_I18N:
current_language = translation.get_language()
available_languages = request.journal.get_setting(
group_name='general',
Expand Down

0 comments on commit 70f2a69

Please sign in to comment.