diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-31 21:59:27 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-31 21:59:27 +0200 |
commit | ffe1429c4fe1d6733225e5e7645e5f6df7340e0e (patch) | |
tree | 68df9701c27bbe5180788b067de253929bf2a7d8 /lib/private/Avatar.php | |
parent | 84ea66dca8593a967d0114a7d0206260263f61f9 (diff) | |
download | nextcloud-server-ffe1429c4fe1d6733225e5e7645e5f6df7340e0e.tar.gz nextcloud-server-ffe1429c4fe1d6733225e5e7645e5f6df7340e0e.zip |
Pass new value to triggerChange
it is not used. but pass in the empty string (on delete) and the new
file (on create)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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', ''); } /** |