MDL-78820 h5p: use fullname of current user as the xAPI actor name.

This commit is contained in:
Paul Holden
2023-10-04 02:03:22 +02:00
committed by Jenkins
parent 493f8261c8
commit f0b20505d9
+1 -1
View File
@@ -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;