mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-78820 h5p: use fullname of current user as the xAPI actor name.
This commit is contained in:
parent
0adb58ec9c
commit
100ac7c646
@ -335,7 +335,7 @@ class helper {
|
||||
// When there is a logged in user, her information will be passed to the player. It will be used for tracking.
|
||||
$usersettings = [];
|
||||
if (isloggedin()) {
|
||||
$usersettings['name'] = $USER->username;
|
||||
$usersettings['name'] = fullname($USER, has_capability('moodle/site:viewfullnames', $systemcontext));
|
||||
$usersettings['id'] = $USER->id;
|
||||
}
|
||||
$savefreq = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user