Commit 8829b449 authored by xorti's avatar xorti

[FIX] Fix issue in displaying converted pdf in browser display

parent 96fc8329
Pipeline #49894701 failed with stages
in 27 minutes and 15 seconds
......@@ -259,6 +259,7 @@ if (isset($_GET['preview']) || isset($_GET['thumbnail']) || isset($_GET['display
if ($build_content) {
if ($convertToPdf) {
$content = PDFHelper::convertToPDF($_REQUEST['fileId']);
$content_changed = true;
} elseif (! isset($_GET['display']) || isset($_GET['x']) || isset($_GET['y']) || $scale || isset($_GET['max']) || isset($_GET['format']) || isset($_GET['thumbnail'])) {
// Modify the original image if needed
if (! Image::isAvailable()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment