mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
Another little hack to complete the course-level forcelanguage
This commit is contained in:
parent
875cb9fa18
commit
e11dc9b682
@ -1566,6 +1566,11 @@ 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;
|
||||
}
|
||||
|
||||
$lang = current_language();
|
||||
|
||||
if ($module == "") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user