Differential D21868 Diff 52164 src/applications/spaces/xaction/PhabricatorSpacesNamespaceNameTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/spaces/xaction/PhabricatorSpacesNamespaceNameTransaction.php
Show All 9 Lines | final class PhabricatorSpacesNamespaceNameTransaction | ||||
} | } | ||||
public function applyInternalEffects($object, $value) { | public function applyInternalEffects($object, $value) { | ||||
$object->setNamespaceName($value); | $object->setNamespaceName($value); | ||||
} | } | ||||
public function getTitle() { | public function getTitle() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
if (!strlen($old)) { | if ($old === null || !strlen($old)) { | ||||
return pht( | return pht( | ||||
'%s created this space.', | '%s created this space.', | ||||
$this->renderAuthor()); | $this->renderAuthor()); | ||||
} else { | } else { | ||||
return pht( | return pht( | ||||
'%s renamed this space from %s to %s.', | '%s renamed this space from %s to %s.', | ||||
$this->renderAuthor(), | $this->renderAuthor(), | ||||
$this->renderOldValue(), | $this->renderOldValue(), | ||||
Show All 36 Lines |