1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +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:
Asher Baker 2013-01-18 06:19:32 -08:00 committed by epriestley
parent 656a6f9b55
commit 27e2198e11

View file

@ -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.)