Merge branch 'MDL-61708-lti-fullnamedisplay' of https://github.com/wjroes/moodle
authorJun Pataleta <jun@moodle.com>
Mon, 16 Apr 2018 07:29:08 +0000 (15:29 +0800)
committerJun Pataleta <jun@moodle.com>
Mon, 16 Apr 2018 07:29:08 +0000 (15:29 +0800)
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;
     }