diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-09-04 12:03:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 12:03:19 +0200 |
commit | c4f175d0794d368ce2429b74cbc5016ba92c785a (patch) | |
tree | a6c8bb3dcb86de1f1e1fe0e94a0ad33be3d713dc /lib | |
parent | 57b74c921be3f7b9f9e35e04263a995f9e572157 (diff) | |
parent | ffe1429c4fe1d6733225e5e7645e5f6df7340e0e (diff) | |
download | nextcloud-server-c4f175d0794d368ce2429b74cbc5016ba92c785a.tar.gz nextcloud-server-c4f175d0794d368ce2429b74cbc5016ba92c785a.zip |
Merge pull request #6326 from nextcloud/fix_4654_3375
Pass new value to triggerChange
Diffstat (limited to 'lib')
-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', ''); } /** |