Permalink
Browse files

Merge pull request #1493 from alesdotio/fallbacks-patch

fixed a bug in language fallback settings
  • Loading branch information...
digi604 committed Oct 25, 2012
2 parents af529e6 + 6e9cbf0 commit 96003df57c2dc0215bf109dc74a85aa0c798d1b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 cms/conf/patch.py
View
@@ -122,7 +122,7 @@ def post_patch_check():
tmp_language['public'] = True
if tmp_language['public']:
fallbacks.append(tmp_language['code'])
- if fallbacks:
+ if fallbacks and language['code'] in fallbacks:
fallbacks.remove(language['code'])
if settings.CMS_LANGUAGES.has_key('default'):
language['fallbacks'] = settings.CMS_LANGUAGES['default'].get('fallbacks', fallbacks)

0 comments on commit 96003df

Please sign in to comment.