Merge branch 'MDL-61453-33-userpicturefiletype' of git://github.com/mudrd8mz/moodle into MOODLE_33_STABLE

This commit is contained in:
Andrew Nicols
2018-03-01 08:46:44 +08:00
+1 -1
View File
@@ -37,7 +37,7 @@ class admin_uploadpicture_form extends moodleform {
$options = array();
$options['accepted_types'] = array('archive');
$options['accepted_types'] = array('.zip');
$mform->addElement('filepicker', 'userpicturesfile', get_string('file'), 'size="40"', $options);
$mform->addRule('userpicturesfile', null, 'required');