Download & Extend

Can delete pictures which are not user pictures

Project:Unique Avatar
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

This module can delete pictures which are not user pictures. For example, if an avatar from the avatar_selection module is in use, and a new user picture is uploaded, the unique_avatar module will delete the avatar from the avatar_selection pool, which is not the intended behavior.

The attached patch makes unique_avatar check to see that the old picture is actually in the pictures directory before deleting it or clearing the image_cache cache.

AttachmentSize
check_pictures_dir.patch1.49 KB
nobody click here