Merge branch 'MDL-61708-lti-fullnamedisplay' of https://github.com/wjroes/moodle
[moodle.git] / mod / lti / locallib.php
index b501b2c..8074fd9 100644 (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;
     }