changeset 4340:615b785f9a3f

i18n.__init__: bug fix for wiki language not installed (MoinMoinBugs/WikiLanguageNotDefined)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 24 Sep 2008 17:28:59 +0200
parents 7bab85e4b1a4
children 61b60d54b591
files MoinMoin/i18n/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/i18n/__init__.py	Tue Sep 23 00:54:46 2008 +0200
+++ b/MoinMoin/i18n/__init__.py	Wed Sep 24 17:28:59 2008 +0200
@@ -329,7 +329,7 @@
     # is available on this wiki...
     lang = get_browser_language(request)
     if not lang:
-        available = wikiLanguages()
+        available = wikiLanguages() or ["en"]
         # Or return the wiki default language...
         if request.cfg.language_default in available:
             lang = request.cfg.language_default