From 5804ccfbdad9b0b4d1f9ad347f6aabe6daf25cb2 Mon Sep 17 00:00:00 2001 From: "Jehan-Guillaume (ioguix) de Rorthais" Date: Sun, 30 Sep 2012 22:52:58 +0200 Subject: [PATCH] Set language if all other tries failed. Reported by Karl O. Pinc --- libraries/lib.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/lib.inc.php b/libraries/lib.inc.php index 1d9453ea..141aebb0 100644 --- a/libraries/lib.inc.php +++ b/libraries/lib.inc.php @@ -162,6 +162,11 @@ $_language = $conf['default_lang']; } + // 6. Otherwise, default to english. + if (!isset($_language)) + $_language = 'english'; + + // Import the language file if (isset($_language)) { include("./lang/{$_language}.php"); -- 2.39.5