Skip to content

Commit 27e2198

Browse files
asherkinepriestley
authored andcommitted
Fix displaying non-image files.
Summary: The Files application currently tries to render all browser-viewable files in an img tag, not taking into account if they're an image or not. Test Plan: Looked at various image and non-image files. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4511
1 parent 656a6f9 commit 27e2198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/applications/files/controller/PhabricatorFileInfoController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function buildPropertyView(PhabricatorFile $file) {
136136
}
137137
}
138138

139-
if ($file->isViewableInBrowser()) {
139+
if ($file->isViewableImage()) {
140140

141141
// TODO: Clean this up after Pholio (dark backgrounds, standardization,
142142
// etc.)

0 commit comments

Comments
 (0)