From 6df680ca6a428cf95da103a7b17f2d1f3dd19abf Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 4 Jul 2002 07:56:19 +0000 Subject: [PATCH] Use lang if locale not defined --- lib/setup.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/setup.php b/lib/setup.php index de7fb49258..47f95a7ec8 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -36,7 +36,11 @@ // Set language/locale of printed times (must be supported by OS) - setlocale ("LC_TIME", $CFG->locale); + if ($CFG->locale) { + setlocale ("LC_TIME", $CFG->locale); + } else { + setlocale ("LC_TIME", $CFG->lang); + } // Load up theme variables (colours etc) -- 2.39.5