Fix #835470 by adrien.gibrat: Transliterate generated PDF filenames if transliteratio...
authorJoao Ventura
Mon, 12 Jul 2010 15:40:16 +0000 (15:40 +0000)
committerJoao Ventura
Mon, 12 Jul 2010 15:40:16 +0000 (15:40 +0000)
print_pdf/print_pdf.pages.inc

index 0239f6b..522cf21 100644 (file)
@@ -75,6 +75,10 @@ function print_pdf_controller() {
   else {
     $pdf_filename = str_replace('/', '_', $path) .'.pdf';
   }
+  if (function_exists('transliteration_clean_filename')) {
+    $pdf_filename = transliteration_clean_filename($pdf_filename, language_default('language'));
+  }
+
   if (basename($print_pdf_pdf_tool) == 'dompdf_config.inc.php') {
     _print_pdf_dompdf($print, $html, $pdf_filename);
   }