Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionBrowseController.php
Show First 20 Lines • Show All 970 Lines • ▼ Show 20 Lines | private function buildDisplayRows( | ||||
$handles = $viewer->loadHandles($phids); | $handles = $viewer->loadHandles($phids); | ||||
$author_phids = array(); | $author_phids = array(); | ||||
$author_map = array(); | $author_map = array(); | ||||
foreach ($blame_commits as $commit) { | foreach ($blame_commits as $commit) { | ||||
$commit_identifier = $commit->getCommitIdentifier(); | $commit_identifier = $commit->getCommitIdentifier(); | ||||
$author_phid = ''; | $author_phid = ''; | ||||
if (isset($revision_map[$commit_identifier])) { | if (isset($revision_map[$commit_identifier]) && | ||||
isset($revisions[$revision_map[$commit_identifier]])) { | |||||
$revision_id = $revision_map[$commit_identifier]; | $revision_id = $revision_map[$commit_identifier]; | ||||
$revision = $revisions[$revision_id]; | $revision = $revisions[$revision_id]; | ||||
$author_phid = $revision->getAuthorPHID(); | $author_phid = $revision->getAuthorPHID(); | ||||
} else { | } else { | ||||
$author_phid = $commit->getAuthorPHID(); | $author_phid = $commit->getAuthorPHID(); | ||||
} | } | ||||
$author_map[$commit_identifier] = $author_phid; | $author_map[$commit_identifier] = $author_phid; | ||||
▲ Show 20 Lines • Show All 1,046 Lines • Show Last 20 Lines |