1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 07:50:57 +01:00

Use "Best" URI when linking to files from Maniphest file previews

Summary: Previously, this code accidentally did not use the best URI. Instead,
use the best URI. It's the best, obviously.

Test Plan: Uploaded a binary file and then clicked the preview.

Reviewers: hunterbridges, jungejason, nh, tuomaspelkonen, aran

Reviewed By: tuomaspelkonen

CC: aran, tuomaspelkonen

Differential Revision: 905
This commit is contained in:
epriestley 2011-09-06 15:15:01 -07:00
parent 1df7d4039e
commit cd7ba81d83

View file

@ -41,7 +41,7 @@ final class AphrontFilePreviewView extends AphrontView {
$link = phutil_render_tag(
'a',
array(
'href' => $file->getViewURI(),
'href' => $file->getBestURI(),
'target' => '_blank',
),
$img);