mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
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
This commit is contained in:
parent
656a6f9b55
commit
27e2198e11
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ final class PhabricatorFileInfoController extends PhabricatorFileController {
|
|||
}
|
||||
}
|
||||
|
||||
if ($file->isViewableInBrowser()) {
|
||||
if ($file->isViewableImage()) {
|
||||
|
||||
// TODO: Clean this up after Pholio (dark backgrounds, standardization,
|
||||
// etc.)
|
||||
|
|
Loading…
Reference in a new issue