mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
DOn't set CFG->courelang unless it means something
This commit is contained in:
parent
e5415d580a
commit
ac8abb5f6a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user