a group's Profile will now correctly update group original avatar
This commit is contained in:
parent
bcb6dadc9f
commit
c8e0000c49
|
@ -155,6 +155,11 @@ class Profile extends Managed_DataObject
|
|||
|
||||
public function setOriginal($filename)
|
||||
{
|
||||
if ($this->isGroup()) {
|
||||
// Until Group avatars are handled just like profile avatars.
|
||||
return $this->getGroup()->setOriginal($filename);
|
||||
}
|
||||
|
||||
$imagefile = new ImageFile($this->id, Avatar::path($filename));
|
||||
|
||||
$avatar = new Avatar();
|
||||
|
|
Loading…
Reference in New Issue
Block a user