Guest language ALWAYS the same as the current site language

This commit is contained in:
moodler
2002-11-13 02:11:50 +00:00
parent 9769da67ab
commit 910d1731af
+3
View File
@@ -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()) {