Skip to content

Commit 07cbda2

Browse files
mwithheldmchurchward
authored andcommitted
Rename downloaded PDF from dump.pdf
Use $questionnaire->name instead
1 parent 8f2b6ee commit 07cbda2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

report.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@
646646
// not an array.
647647
$errorreporting = error_reporting(0);
648648
$pdf->writeHTML($html);
649-
@$pdf->Output('dump.pdf', 'D');
649+
@$pdf->Output(clean_param($questionnaire->name, PARAM_FILE), 'D');
650650
error_reporting($errorreporting);
651651

652652
} else { // Default to HTML.
@@ -779,7 +779,7 @@
779779
// not an array.
780780
$errorreporting = error_reporting(0);
781781
$pdf->writeHTML($html);
782-
@$pdf->Output('dump.pdf', 'D');
782+
@$pdf->Output(clean_param($questionnaire->name, PARAM_FILE), 'D');
783783
error_reporting($errorreporting);
784784

785785
} else { // Default to HTML.

0 commit comments

Comments
 (0)