Moved session lang setting into setup.php (works on all pages)

This commit is contained in:
moodler
2003-01-20 08:09:25 +00:00
parent 858156a995
commit 3e9b5d5a90
2 changed files with 5 additions and 4 deletions
+5
View File
@@ -144,6 +144,11 @@
/// then use the one from the default language. Otherwise (and this is the
/// majority of cases), use the stored locale specified by admin.
if (isset($lang)) {
$SESSION->lang = $lang;
save_session("SESSION");
}
if (!empty($SESSION->lang) and ($SESSION->lang != $CFG->lang) ) {
$CFG->locale = get_string("locale");
} else if (!empty($USER->lang) and ($USER->lang != $CFG->lang) ) {