Browse Source

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>
pull/6326/head
Roeland Jago Douma 9 years ago
parent
commit
ffe1429c4f
No known key found for this signature in database GPG Key ID: F941078878347C0C
  1. 7
      lib/private/Avatar.php

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

Loading…
Cancel
Save