Differential D20460 Diff 48827 src/applications/differential/xaction/DifferentialRevisionCloseTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionCloseTransaction.php
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | public function getTitle() { | ||||
} | } | ||||
if (!$commit) { | if (!$commit) { | ||||
return pht( | return pht( | ||||
'%s closed this revision.', | '%s closed this revision.', | ||||
$this->renderAuthor()); | $this->renderAuthor()); | ||||
} | } | ||||
$author_phid = $commit->getAuthorDisplayPHID(); | $author_phid = null; | ||||
$committer_phid = $commit->getCommitterDisplayPHID(); | if ($commit->hasAuthorIdentity()) { | ||||
$identity = $commit->getAuthorIdentity(); | |||||
$author_phid = $identity->getIdentityDisplayPHID(); | |||||
} | |||||
$committer_phid = null; | |||||
if ($commit->hasCommitterIdentity()) { | |||||
$identity = $commit->getCommitterIdentity(); | |||||
$committer_phid = $identity->getIdentityDisplayPHID(); | |||||
} | |||||
if (!$author_phid) { | if (!$author_phid) { | ||||
return pht( | return pht( | ||||
'Closed by commit %s.', | 'Closed by commit %s.', | ||||
$this->renderHandle($commit_phid)); | $this->renderHandle($commit_phid)); | ||||
} else if (!$committer_phid || ($committer_phid === $author_phid)) { | } else if (!$committer_phid || ($committer_phid === $author_phid)) { | ||||
return pht( | return pht( | ||||
'Closed by commit %s (authored by %s).', | 'Closed by commit %s (authored by %s).', | ||||
Show All 37 Lines |