Merge branch 'MDL-84584-main' of https://github.com/sh-csg/moodle

This commit is contained in:
Sara Arjona 2025-02-26 08:04:02 +01:00
commit efe1f1537a
No known key found for this signature in database

View file

@ -659,11 +659,6 @@ function badges_process_badge_image(badge $badge, $iconfile) {
if (!empty($CFG->gdversion)) {
process_new_icon($badge->get_context(), 'badges', 'badgeimage', $badge->id, $iconfile, true);
@unlink($iconfile);
// Clean up file draft area after badge image has been saved.
$context = context_user::instance($USER->id, MUST_EXIST);
$fs = get_file_storage();
$fs->delete_area_files($context->id, 'user', 'draft');
}
}