From 9140cfbc051bde211f45169b21a0bbb9d7574f0e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 12 Jan 2006 20:25:49 +0000 Subject: [PATCH] Bugfix dans show_documents, la fonction listait incorrectement les fichier autres que les factures pour facture.php --- htdocs/html.form.class.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ''.$mimetype.''; - print ''.$file.''; + // print ''.$file.''; + + print ''.$file.''; + + print ''.filesize($filedir."/".$file). ' bytes'; print ''.strftime("%d %b %Y %H:%M:%S",filemtime($filedir."/".$file)).''; print '';