Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/xaction/PhortuneAccountNameTransaction.php
Show All 11 Lines | final class PhortuneAccountNameTransaction | ||||
public function applyInternalEffects($object, $value) { | public function applyInternalEffects($object, $value) { | ||||
$object->setName($value); | $object->setName($value); | ||||
} | } | ||||
public function getTitle() { | public function getTitle() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
if (strlen($old) && strlen($new)) { | if (phutil_nonempty_string($old) && phutil_nonempty_string($new)) { | ||||
return pht( | return pht( | ||||
'%s renamed this account from %s to %s.', | '%s renamed this account from %s to %s.', | ||||
$this->renderAuthor(), | $this->renderAuthor(), | ||||
$this->renderOldValue(), | $this->renderOldValue(), | ||||
$this->renderNewValue()); | $this->renderNewValue()); | ||||
} else { | } else { | ||||
return pht( | return pht( | ||||
'%s created this account.', | '%s created this account.', | ||||
Show All 27 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0