1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +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:
epriestley 2012-01-19 17:07:25 -08:00
parent 6080d74112
commit 008461a395

View file

@ -326,7 +326,7 @@ class PhabricatorObjectHandleData {
} else { } else {
$file = $files[$phid]; $file = $files[$phid];
$handle->setName($file->getName()); $handle->setName($file->getName());
$handle->setURI($file->getViewURI()); $handle->setURI($file->getBestURI());
$handle->setComplete(true); $handle->setComplete(true);
} }
$handles[$phid] = $handle; $handles[$phid] = $handle;