added .pdf extension

This commit is contained in:
Roland Gruber 2014-09-21 14:19:06 +00:00
parent 037e663de0
commit 169cb977f0
1 changed files with 2 additions and 1 deletions

View File

@ -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;