1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Fix undefined variables in Subversion

Summary: These variables won't be in scope in Subversion.

See: <https://secure.phabricator.com/rP2ff5541fc59c4be7abd733a39e12db8358004f7a>

Auditors: btrahan
This commit is contained in:
epriestley 2013-12-07 11:12:38 -08:00
parent 99ad978e90
commit 7a5c3cc854

View file

@ -519,13 +519,14 @@ final class DiffusionCommitController extends DiffusionController {
}
}
$author_phid = $data->getCommitDetail('authorPHID');
$author_name = $data->getAuthorName();
if (!$repository->isSVN()) {
$authored_info = id(new PHUIStatusItemView());
// TODO: In Git, a distinct authorship date is available. When present,
// we should show it here.
$author_phid = $data->getCommitDetail('authorPHID');
$author_name = $data->getAuthorName();
if ($author_phid) {
$authored_info->setTarget($handles[$author_phid]->renderLink());
} else if (strlen($author_name)) {