diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 6b85ce301ac..f7c8df2a6c0 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1804,7 +1804,8 @@ class Form $filename = sanitize_string($filename); // Par defaut - $extension = 'pdf'; $relativepath = "${filename}/${filename}.${extension}"; + $extension = 'pdf'; + $relativepath = "${filename}/${filename}.${extension}"; // Autre cas if ($modulepart == 'expedition') { $extension='pdf'; $relativepath = get_exdir("${filename}")."${filename}.pdf"; } if ($modulepart == 'don') { $extension='html'; $relativepath = get_exdir("${filename}")."${filename}.html"; } @@ -1880,7 +1881,11 @@ class Form if ($extension == 'html') $mimetype='HTML'; if (eregi('\-detail\.pdf',$file)) $mimetype='PDF Détaillé'; print '