mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
fixed typos in chat_force_language(), added encoding to message page, minor cleanup
This commit is contained in:
parent
9a9ebde280
commit
a776c371e7
4 changed files with 14 additions and 5 deletions
|
@ -295,11 +295,13 @@ function chat_force_language($lang) {
|
|||
/// This function prepares moodle to operate in given language
|
||||
/// usable when $nomoodlecookie = true;
|
||||
/// BEWARE: there must be no $course, $USER or $SESSION
|
||||
global $CFG;
|
||||
|
||||
if(!empty($CFG->courselang)) {
|
||||
uset($CFG->courselang);
|
||||
unset($CFG->courselang);
|
||||
}
|
||||
if(!empty($CFG->locale)) {
|
||||
uset($CFG->locale);
|
||||
unset($CFG->locale);
|
||||
}
|
||||
$CFG->lang = clean_filename($lang);
|
||||
moodle_setlocale();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue