$options = array(get_string('no'), get_string('yes'));
$mform->addElement('select', 'hidepicture', get_string('hidepicture'), $options);
- $mform->addElement('file', 'imagefile', get_string('newpicture', 'group'));
+ $mform->addElement('filepicker', 'imagefile', get_string('newpicture', 'group'));
$mform->addHelpButton('imagefile', 'newpicture', 'group');
}
$mform->addElement('checkbox', 'deletepicture', get_string('delete'));
$mform->setDefault('deletepicture',false);
- $mform->addElement('file', 'imagefile', get_string('newpicture'));
+ $mform->addElement('filepicker', 'imagefile', get_string('newpicture'));
$mform->addHelpButton('imagefile', 'newpicture');
$mform->addElement('text', 'imagealt', get_string('imagealt'), 'maxlength="100" size="30"');