diff options
Diffstat (limited to 'lib/private/Avatar.php')
-rw-r--r-- | lib/private/Avatar.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php index fc1909c3bda..efbebfd55cd 100644 --- a/lib/private/Avatar.php +++ b/lib/private/Avatar.php @@ -135,8 +135,9 @@ class Avatar implements IAvatar { } $this->remove(); - $this->folder->newFile('avatar.'.$type)->putContent($data); - $this->user->triggerChange('avatar'); + $file = $this->folder->newFile('avatar.'.$type); + $file->putContent($data); + $this->user->triggerChange('avatar', $file); } /** @@ -155,7 +156,7 @@ class Avatar implements IAvatar { $avatar->delete(); } } - $this->user->triggerChange('avatar'); + $this->user->triggerChange('avatar', ''); } /** |