fixed typos in chat_force_language(), added encoding to message page, minor cleanup

This commit is contained in:
skodak 2005-02-08 21:23:19 +00:00
parent 9a9ebde280
commit a776c371e7
4 changed files with 14 additions and 5 deletions

View file

@ -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();