diff --git a/classes/editor.php b/classes/editor.php index f52343b..4197bc7 100644 --- a/classes/editor.php +++ b/classes/editor.php @@ -99,6 +99,7 @@ public function config() { $user['id'] = $USER->id; $user['name'] = \fullname($USER); $editorconfig['user'] = $user; + $editorconfig['lang'] = stristr($USER->lang, '_', true) !== false ? stristr($USER->lang, '_', true) : $USER->lang; // customization $customization = [];