From 9e42721660a2aef62bee9a11eec18dcce91887fa Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Tue, 11 Aug 2020 14:38:37 +0200 Subject: [PATCH] MDL-61215 core_badges: use the new optimised_image filetype group For the badge picture (instead of the web_image which includes SVG files). --- badges/classes/form/badge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badges/classes/form/badge.php b/badges/classes/form/badge.php index 523403bf9f9..6626b584810 100644 --- a/badges/classes/form/badge.php +++ b/badges/classes/form/badge.php @@ -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') { -- 2.43.0