Merge pull request #6528 from nextcloud/fix_4654_3375-12

[stable12] Pass new value to triggerChange
This commit is contained in:
Morris Jobke 2017-09-20 16:05:49 +02:00 committed by GitHub
commit 2062c2ada6
1 changed files with 4 additions and 3 deletions

View File

@ -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', '');
}
/**