diff --git a/src/applications/owners/controller/PhabricatorOwnersDetailController.php b/src/applications/owners/controller/PhabricatorOwnersDetailController.php index ea5ca844f9..e0992e99ad 100644 --- a/src/applications/owners/controller/PhabricatorOwnersDetailController.php +++ b/src/applications/owners/controller/PhabricatorOwnersDetailController.php @@ -98,13 +98,10 @@ final class PhabricatorOwnersDetailController $path_links = array(); foreach ($paths as $path) { $repo = $repositories[$path->getRepositoryPHID()]; - $drequest = DiffusionRequest::newFromDictionary( + $href = DiffusionRequest::generateDiffusionURI( array( - 'repository' => $repo, + 'callsign' => $repo->getCallsign(), 'path' => $path->getPath(), - )); - $href = $drequest->generateURI( - array( 'action' => 'browse' )); $repo_name = ''.phutil_escape_html($repo->getName()). diff --git a/src/applications/owners/controller/PhabricatorOwnersListController.php b/src/applications/owners/controller/PhabricatorOwnersListController.php index e4afc5061d..6ac24112c6 100644 --- a/src/applications/owners/controller/PhabricatorOwnersListController.php +++ b/src/applications/owners/controller/PhabricatorOwnersListController.php @@ -262,14 +262,11 @@ final class PhabricatorOwnersListController foreach ($pkg_paths as $key => $path) { $repo = $repositories[$path->getRepositoryPHID()]; if ($repo) { - $drequest = DiffusionRequest::newFromDictionary( + $href = DiffusionRequest::generateDiffusionURI( array( - 'repository' => $repo, - 'path' => $path->getPath(), - )); - $href = $drequest->generateURI( - array( - 'action' => 'browse', + 'callsign' => $repo->getCallsign(), + 'path' => $path->getPath(), + 'action' => 'browse', )); $pkg_paths[$key] = ''.phutil_escape_html($repo->getName()).' '.