*/
public function setDisplayName($displayName) {
$displayName = trim($displayName);
+ $oldDisplayName = $this->getDisplayName();
if ($this->backend->implementsActions(Backend::SET_DISPLAYNAME) && !empty($displayName)) {
$result = $this->backend->setDisplayName($this->uid, $displayName);
if ($result) {
$this->displayName = $displayName;
- $this->triggerChange('displayName', $displayName);
+ $this->triggerChange('displayName', $displayName, $oldDisplayName);
}
return $result !== false;
}