Index: trunk/extensions/SocialProfile/SystemGifts/SpecialRemoveMasterSystemGift.php |
— | — | @@ -23,9 +23,10 @@ |
24 | 24 | */ |
25 | 25 | function deleteImage( $id, $size ) { |
26 | 26 | global $wgUploadDirectory; |
27 | | - $files = glob( $wgUploadDirectory . '/awards/' . $id . "_{$size}*" ); |
| 27 | + $files = glob( $wgUploadDirectory . '/awards/sg_' . $id . "_{$size}*" ); |
28 | 28 | if ( $files && $files[0] ) { |
29 | 29 | $img = basename( $files[0] ); |
| 30 | + // $img already contains the sg_ prefix |
30 | 31 | unlink( $wgUploadDirectory . '/awards/' . $img ); |
31 | 32 | } |
32 | 33 | } |