mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Use lang if locale not defined
This commit is contained in:
parent
fa0626c6f4
commit
6df680ca6a
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user