Merge branch 'MDL-61708-lti-fullnamedisplay' of https://github.com/wjroes/moodle

This commit is contained in:
Jun Pataleta 2018-04-16 15:29:08 +08:00
commit 1e09c9ac8f

View File

@ -463,7 +463,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;
}