Merge branch 'MDL-76986-master' of https://github.com/davewoloszyn/moodle

This commit is contained in:
Sara Arjona
2023-04-13 17:31:58 +02:00
+2 -1
View File
@@ -81,7 +81,8 @@ class lang {
$lang = min_optional_param('lang', 'standard', 'SAFEDIR');
}
$this->lang = $lang;
// Retrieve the correct language by converting to Moodle's language code format.
$this->lang = str_replace('-', '_', $lang);
$this->rev = $rev;
$this->candidatefile = "{$CFG->localcachedir}/editor_tiny/{$this->rev}/lang/{$this->lang}/lang.json";
}