Moved session lang setting into setup.php (works on all pages)
This commit is contained in:
@@ -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) ) {
|
||||
|
||||
Reference in New Issue
Block a user