MDL-22574, fixed file type

This commit is contained in:
Dongsheng Cai 2010-06-08 08:02:14 +00:00
parent 8b8aa0605f
commit 2bed95e962

View File

@ -16,7 +16,7 @@ class admin_uploadpicture_form extends moodleform {
$options = array();
$options['filetypes'] = array('archive');
$options['accepted_types'] = array('archive');
$mform->addElement('filepicker', 'userpicturesfile', get_string('file'), 'size="40"', $options);
$mform->addRule('userpicturesfile', null, 'required');