Alan Lam 7 лет назад
Родитель
Сommit
aa6d7a0e5e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      controllers/test_invoice.php

+ 1 - 0
controllers/test_invoice.php

@@ -42,6 +42,7 @@ $directory = $test->getDirectory();
 $pdf_filepath = $directory . "/tester_invoice.pdf";
 $pdf_filepath = $directory . "/tester_invoice.pdf";
 if($test->hasTesterInvoicePDF()) {
 if($test->hasTesterInvoicePDF()) {
 	http::setDownloadHeaders($download_filename);
 	http::setDownloadHeaders($download_filename);
+	header("Content-Type: application/pdf");
 	readfile($pdf_filepath);
 	readfile($pdf_filepath);
 	exit;
 	exit;
 }
 }