mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Use getBestURI() to set file handle URIs
Summary: getBestURI() = best URI Test Plan: It says "best" in the name so it must be the best! Also in Maniphest emails we'll link you to /view/ even for binaries and other non-viewable content. Reviewers: btrahan, jungejason Reviewed By: btrahan CC: anjali, aran Differential Revision: https://secure.phabricator.com/D1461
This commit is contained in:
parent
6080d74112
commit
008461a395
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ class PhabricatorObjectHandleData {
|
|||
} else {
|
||||
$file = $files[$phid];
|
||||
$handle->setName($file->getName());
|
||||
$handle->setURI($file->getViewURI());
|
||||
$handle->setURI($file->getBestURI());
|
||||
$handle->setComplete(true);
|
||||
}
|
||||
$handles[$phid] = $handle;
|
||||
|
|
Loading…
Reference in a new issue