mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Set guest name in current language on login
This commit is contained in:
parent
bf3bc898ac
commit
801e1f0a3e
1 changed files with 2 additions and 1 deletions
|
@ -39,6 +39,7 @@
|
|||
|
||||
if ($USER->username == "guest") {
|
||||
$USER->lang = $CFG->lang; // Guest language always same as site
|
||||
$USER->firstname = get_string("guestuser"); // Name always in current language
|
||||
}
|
||||
|
||||
if (!update_user_in_db()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue