Browse Source

Fix issue while generating PDFs - Set the complete path to the SYS_ARCHIVE folder - refs BT#9413

Yannick Warnier 9 years ago
parent
commit
117e5aadd1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main/inc/lib/pdf.lib.php

+ 1 - 0
main/inc/lib/pdf.lib.php

@@ -444,6 +444,7 @@ class PDF
             $pdf_name = api_replace_dangerous_char($pdf_name);
             $output_file = $pdf_name.'.pdf';
         }
+        $output_file = api_get_path(SYS_ARCHIVE_PATH) . $output_file;
         $this->pdf->Output($output_file, $outputMode); // F to save the pdf in a file
         if ($outputMode == 'F') {
             // Do NOT exit when export to file