MDL-61215 core_user: use the new optimised_image filetype group

For the user profile picture (instead of the web_image which includes
SVG files).
This commit is contained in:
Sara Arjona
2020-08-14 17:06:51 +02:00
parent 62cdf371df
commit 25128d16aa
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ $filemanagercontext = $editoroptions['context'];
$filemanageroptions = array('maxbytes' => $CFG->maxbytes,
'subdirs' => 0,
'maxfiles' => 1,
'accepted_types' => 'web_image');
'accepted_types' => 'optimised_image');
file_prepare_draft_area($draftitemid, $filemanagercontext->id, 'user', 'newicon', 0, $filemanageroptions);
$user->imagefile = $draftitemid;
// Create form.