Browse Source

Fix #456 use fullname() api.

nwp90-nwp90-allsessionsreport
Dan Marsden 5 years ago
parent
commit
c413580317
  1. 2
      student_attendance_form.php

2
student_attendance_form.php

@ -97,7 +97,7 @@ class mod_attendance_student_attendance_form extends moodleform {
$radioarray[] =& $mform->createElement('static', '', '', $warning); $radioarray[] =& $mform->createElement('static', '', '', $warning);
} }
// Add the radio buttons as a control with the user's name in front. // Add the radio buttons as a control with the user's name in front.
$radiogroup = $mform->addGroup($radioarray, 'statusarray', $USER->firstname.' '.$USER->lastname.':', array(''), false); $radiogroup = $mform->addGroup($radioarray, 'statusarray', fullname($USER).':', array(''), false);
$radiogroup->setAttributes(array('class' => 'statusgroup')); $radiogroup->setAttributes(array('class' => 'statusgroup'));
$mform->addRule('statusarray', get_string('attendancenotset', 'attendance'), 'required', '', 'client', false, false); $mform->addRule('statusarray', get_string('attendancenotset', 'attendance'), 'required', '', 'client', false, false);
} }

Loading…
Cancel
Save