MDL-61708 mod_lti: use fullnamedisplay to pass lis_person_name_full

Students 'firstname lastname' was passed to LTI Provider as 
lis_person_name_full. Now changed to use fullnamedisplay.
This commit is contained in:
willem 2018-03-23 13:07:36 +01:00
parent b63a3b04b1
commit fa979cd4e1

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;
}