From: moodler Date: Wed, 13 Nov 2002 02:11:50 +0000 (+0000) Subject: Guest language ALWAYS the same as the current site language X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=910d1731af12eb837760bc791bcb6b88c740ade5;p=moodle.git Guest language ALWAYS the same as the current site language --- diff --git a/login/index.php b/login/index.php index 49c16a8db0..7f3b6883db 100644 --- a/login/index.php +++ b/login/index.php @@ -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()) {