diff --git a/src/applications/diviner/phid/DivinerAtomPHIDType.php b/src/applications/diviner/phid/DivinerAtomPHIDType.php index 3ee95c9ea1..7387b0cafe 100644 --- a/src/applications/diviner/phid/DivinerAtomPHIDType.php +++ b/src/applications/diviner/phid/DivinerAtomPHIDType.php @@ -1,49 +1,53 @@ withPHIDs($phids); } public function loadHandles( PhabricatorHandleQuery $query, array $handles, array $objects) { foreach ($handles as $phid => $handle) { $atom = $objects[$phid]; $book = $atom->getBook()->getName(); $name = $atom->getName(); $type = $atom->getType(); $handle ->setName($atom->getName()) ->setTitle($atom->getTitle()) ->setURI("/book/{$book}/{$type}/{$name}/") ->setStatus($atom->getGraphHash() ? PhabricatorObjectHandle::STATUS_OPEN : PhabricatorObjectHandle::STATUS_CLOSED); } } } diff --git a/src/applications/diviner/phid/DivinerBookPHIDType.php b/src/applications/diviner/phid/DivinerBookPHIDType.php index 39420ec12c..da08ae3e87 100644 --- a/src/applications/diviner/phid/DivinerBookPHIDType.php +++ b/src/applications/diviner/phid/DivinerBookPHIDType.php @@ -1,44 +1,48 @@ withPHIDs($phids); } public function loadHandles( PhabricatorHandleQuery $query, array $handles, array $objects) { foreach ($handles as $phid => $handle) { $book = $objects[$phid]; $name = $book->getName(); $handle ->setName($book->getShortTitle()) ->setFullName($book->getTitle()) ->setURI("/book/{$name}/"); } } }