mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 09:30:17 +01:00
MDL-76986 editor_tiny: Convert language code format for getting strings
This commit is contained in:
parent
f8e2445513
commit
ab0038da84
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user