From 216edea1b02b5361415052b3a4d1e0bcf4141e6d Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Tue, 8 Jun 2021 23:15:02 +0200 Subject: [PATCH] The old pdf test system doesn't work anymore, defaulting to production method --- CRM/Utils/PDF/Utils.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CRM/Utils/PDF/Utils.php b/CRM/Utils/PDF/Utils.php index e134e6bd72..9353ea2ba3 100644 --- a/CRM/Utils/PDF/Utils.php +++ b/CRM/Utils/PDF/Utils.php @@ -122,9 +122,7 @@ right = 1.0in]{geometry} else { header('Content-Type: application/pdf'); header('Content-Disposition: attachment; filename="' . $fileName . '"'); - echo $pdf; - // quidam: comment previous line and uncomment next one during printing - //CRM_Utils_PDF_Utils::enqueuePDF($pdf); + CRM_Utils_PDF_Utils::enqueuePDF($pdf); } } @@ -338,9 +336,7 @@ right = 1.0in]{geometry} else { CRM_Utils_System::setHttpHeader('Content-Type', 'application/pdf'); CRM_Utils_System::setHttpHeader('Content-Disposition', 'attachment; filename="' . $fileName . '"'); - echo $pdf; - // quidam: comment previous line and uncomment next one during printing - //CRM_Utils_PDF_Utils::enqueuePDF($pdf); + CRM_Utils_PDF_Utils::enqueuePDF($pdf); } } -- 2.25.1