mirror of
https://github.com/flarum/core.git
synced 2025-07-21 16:51:34 +02:00
Clean up attribute assignment
This commit is contained in:
@@ -277,7 +277,7 @@ class User extends AbstractModel
|
|||||||
*/
|
*/
|
||||||
public function changeAvatarPath($path)
|
public function changeAvatarPath($path)
|
||||||
{
|
{
|
||||||
$this->attributes['avatar_url'] = $path;
|
$this->avatar_url = $path;
|
||||||
|
|
||||||
$this->raise(new AvatarChanged($this));
|
$this->raise(new AvatarChanged($this));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user