Feature from Eloy to set the language to whatever the browser suggests (if the user is not logged in)
This commit is contained in:
@@ -569,7 +569,11 @@ global $HTTPSPAGEREQUIRED;
|
||||
$SESSION->lang = $lang.'_utf8';
|
||||
}
|
||||
}
|
||||
|
||||
setup_lang_from_browser();
|
||||
|
||||
unset($lang);
|
||||
|
||||
if (empty($CFG->lang)) {
|
||||
if (empty($SESSION->lang)) {
|
||||
$CFG->lang = 'en_utf8';
|
||||
|
||||
Reference in New Issue
Block a user