DOn't set CFG->courelang unless it means something

This commit is contained in:
moodler 2004-02-15 14:34:13 +00:00
parent e5415d580a
commit ac8abb5f6a

View File

@ -1633,8 +1633,10 @@ function get_string($identifier, $module="", $a=NULL) {
global $CFG;
global $course; /// Not a nice hack, but quick
if (!empty($course->lang)) {
$CFG->courselang = $course->lang;
if (empty($CFG->courselang)) {
if (!empty($course->lang)) {
$CFG->courselang = $course->lang;
}
}
$lang = current_language();