MDL-22574, filepicker conversion for user and group settings

This commit is contained in:
Dongsheng Cai 2010-06-11 05:10:12 +00:00
parent 246a9b05ba
commit 92b143f145
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class group_form extends moodleform {
$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');
}

View File

@ -245,7 +245,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
$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"');