From: martin Date: Thu, 4 Jul 2002 07:56:19 +0000 (+0000) Subject: Use lang if locale not defined X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6df680ca6a428cf95da103a7b17f2d1f3dd19abf;p=moodle.git Use lang if locale not defined --- 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)