Guest language ALWAYS the same as the current site language
This commit is contained in:
@@ -38,6 +38,9 @@
|
||||
$USER = $user;
|
||||
$USER->loggedin = true;
|
||||
$USER->site = $CFG->wwwroot; // for added security
|
||||
if ($USER->username = "guest") {
|
||||
$USER->lang = $CFG->lang; // Guest language always same as site
|
||||
}
|
||||
save_session("USER");
|
||||
|
||||
if (!update_user_in_db()) {
|
||||
|
||||
Reference in New Issue
Block a user