Whoops, forgot to check this in last night.

This commit is contained in:
moodler
2004-07-17 04:31:34 +00:00
parent 07b3c9f2b3
commit 32c60ce365
+4 -2
View File
@@ -232,8 +232,10 @@
/// majority of cases), use the stored locale specified by admin.
if (isset($_GET['lang'])) {
$SESSION->lang = $lang;
$SESSION->encoding = get_string('thischarset');
if (!detect_munged_arguments($lang) and file_exists("$CFG->dirroot/lang/$lang")) {
$SESSION->lang = $lang;
$SESSION->encoding = get_string('thischarset');
}
}
if (empty($CFG->lang)) {
$CFG->lang = "en";