From 169cb977f0149e8e35cfc313aa5ce0f4adb6b413 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 21 Sep 2014 14:19:06 +0000 Subject: [PATCH] added .pdf extension --- lam/templates/massDoUpload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/templates/massDoUpload.php b/lam/templates/massDoUpload.php index 89f1477e..4fbf4ba4 100644 --- a/lam/templates/massDoUpload.php +++ b/lam/templates/massDoUpload.php @@ -231,7 +231,8 @@ if (($_SESSION['mass_counter'] < sizeof($accounts)) || !isset($_SESSION['mass_po } // create and save PDF $pdfContent = createModulePDF(array($_SESSION['pdfAccount']), $pdfStructure, true); - $pdfZip->addFromString($dn, $pdfContent); + $fileName = $dn . '.pdf'; + $pdfZip->addFromString($fileName, $pdfContent); $_SESSION['mass_pdf']['counter'] ++; if ($_SESSION['mass_pdf']['counter'] >= sizeof($accounts)) { $_SESSION['mass_pdf']['finished'] = true;