Summary: When Diffusion encounters an image file, it displays it as an image, but when it encounters a PDF file, it currently shows only some gibberish. This fixes that. Test Plan: I tried it. Embedding a large PDF in a data URL is a little bit slow, but it works. Reviewers: tuomaspelkonen, epriestley, gc3, waltermundt, jungejason, nh Reviewed By: epriestley CC: aran, tuomaspelkonen, epriestley, jaapweel Differential Revision: 915
22 lines
746 B
PHP
22 lines
746 B
PHP
<?php
|
|
/**
|
|
* This file is automatically generated. Lint this module to rebuild it.
|
|
* @generated
|
|
*/
|
|
|
|
|
|
|
|
phutil_require_module('phabricator', 'aphront/response/file');
|
|
phutil_require_module('phabricator', 'applications/diffusion/controller/base');
|
|
phutil_require_module('phabricator', 'applications/diffusion/query/filecontent/base');
|
|
phutil_require_module('phabricator', 'applications/markup/syntax');
|
|
phutil_require_module('phabricator', 'infrastructure/celerity/api');
|
|
phutil_require_module('phabricator', 'infrastructure/javelin/api');
|
|
phutil_require_module('phabricator', 'view/layout/panel');
|
|
|
|
phutil_require_module('phutil', 'markup');
|
|
phutil_require_module('phutil', 'utils');
|
|
|
|
|
|
phutil_require_source('DiffusionBrowseFileController.php');
|