MDL-61708 mod_lti: use fullname for lis_person_name_full

Fullname passed on to LTI Provider was in format 'firstname lastname'
completely ignoring fullnamedisplay settings.
This commit is contained in:
Willem Roes
2018-04-07 09:33:14 +02:00
parent c6846832d5
commit 67553b916f
+1 -1
View File
@@ -450,7 +450,7 @@ function lti_build_request($instance, $typeconfig, $course, $typeid = null, $isl
) {
$requestparams['lis_person_name_given'] = $USER->firstname;
$requestparams['lis_person_name_family'] = $USER->lastname;
$requestparams['lis_person_name_full'] = $USER->firstname . ' ' . $USER->lastname;
$requestparams['lis_person_name_full'] = fullname($USER);
$requestparams['ext_user_username'] = $USER->username;
}