mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 08:23:01 +02:00
Merge branch 'MDL-77735-master' of https://github.com/sarjona/moodle
This commit is contained in:
commit
825e621264
@ -2286,7 +2286,7 @@ function get_html_lang($dir = false) {
|
||||
global $CFG;
|
||||
|
||||
$currentlang = current_language();
|
||||
if ($currentlang !== $CFG->lang && !get_string_manager()->translation_exists($currentlang)) {
|
||||
if (isset($CFG->lang) && $currentlang !== $CFG->lang && !get_string_manager()->translation_exists($currentlang)) {
|
||||
// Use the default site language when the current language is not available.
|
||||
$currentlang = $CFG->lang;
|
||||
// Fix the current language.
|
||||
|
Loading…
x
Reference in New Issue
Block a user