From fcbfdbae86a1e48653adb607c351d9030368842e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 5 Jun 2023 14:49:17 +0200 Subject: [PATCH] wip #5991 @0.25 --- app/process.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/process.php b/app/process.php index b73dcbe..74b7484 100644 --- a/app/process.php +++ b/app/process.php @@ -12,11 +12,11 @@ if (!isset($_POST['quality'])) { if (!isset($_POST['pdf'])) { if (isset($_POST['toolbox'])) { - $class = ProcessToolboxDocumentFile::class; + $p = new ProcessToolboxDocumentFile($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } else { - $class = ProcessFile::class; + $p = new ProcessFile($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } - $p = new $class($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); + } else { $p = new ProcessToolboxPDFFile($_POST['pdf'], $_POST['out'], $_POST['page'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } -- 2.39.5