MDL-61215 core_badges: use the new optimised_image filetype group

For the badge picture (instead of the web_image which includes
SVG files).
This commit is contained in:
Sara Arjona
2020-08-14 17:06:23 +02:00
parent c6bd7bd0ab
commit 8eecd8a341
+1 -1
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') {