Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: cms/utils.py

Issue 6579774528946176: Issue 2522 - Language selector broken on English pages (Closed)
Patch Set: Created May 15, 2015, 10:48 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/utils.py
diff --git a/cms/utils.py b/cms/utils.py
index cdb7eadf66bbef8e2debc0469857e73b0ce58161..0c7b8bea7e44da7c7b776acf6c4830c4010d927d 100644
--- a/cms/utils.py
+++ b/cms/utils.py
@@ -61,7 +61,7 @@ def get_page_params(source, locale, page, format=None, site_url_override=None):
locales = [
l
for l in source.list_locales()
- if source.has_locale(locale, localefile)
+ if source.has_locale(l, localefile)
]
if defaultlocale not in locales:
locales.append(defaultlocale)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld