From 1d1c8f9a01efdab714b71b9b4c7eef23850df96e Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Mon, 27 Aug 2007 07:25:19 +0000 Subject: [PATCH] Choose english if the language is not available. Fixes #1047 --- bureau/class/lang_env.php | 4 +++- debian/changelog | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bureau/class/lang_env.php b/bureau/class/lang_env.php index 6ef6b0f5..956510af 100644 --- a/bureau/class/lang_env.php +++ b/bureau/class/lang_env.php @@ -47,7 +47,9 @@ if ($setlang && $lang) { } // User chose a non existent language, select the first available one - +if ($lang == NULL) { + $lang = "en_US"; +} /* Language ok, set the locale environment */ putenv("LC_MESSAGES=$lang"); diff --git a/debian/changelog b/debian/changelog index d83f8a66..595b9e07 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ alternc (0.9.6.5) testing; urgency=low + * Choose english as default language, (#1047) * parameter checking in subdomain creation (#1037) * Changing ownership of /var/alternc/tmp, makes file upload work again (#1058) * Force the restart of apache & apache-ssl (#1000)