Merge branch 'MDL-61215-master' of git://github.com/sarjona/moodle

This commit is contained in:
Andrew Nicols 2020-08-20 07:14:15 +08:00
commit d48a0a9a5d
8 changed files with 27 additions and 15 deletions

View file

@ -70,7 +70,7 @@ class badge extends moodleform {
$mform->addRule('description', null, 'required');
$str = $action == 'new' ? get_string('badgeimage', 'badges') : get_string('newimage', 'badges');
$imageoptions = array('maxbytes' => 262144, 'accepted_types' => array('web_image'));
$imageoptions = array('maxbytes' => 262144, 'accepted_types' => array('optimised_image'));
$mform->addElement('filepicker', 'image', $str, null, $imageoptions);
if ($action == 'new') {