Use lang if locale not defined

This commit is contained in:
martin 2002-07-04 07:56:19 +00:00
parent fa0626c6f4
commit 6df680ca6a

View File

@ -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)