mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
Merge branch 'MDL-84584-main' of https://github.com/sh-csg/moodle
This commit is contained in:
commit
efe1f1537a
1 changed files with 0 additions and 5 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue