diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 8160f798db3..7fb01c3a1ff 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1176,11 +1176,11 @@ else * Documents générés * */ - $forbidden_chars=array("/","\\",":","*","?","\"","<",">","|","[","]",",",";","="); - $facref = str_replace($forbidden_chars,"_",$fac->ref); - $file = FAC_OUTPUTDIR . "/" . $facref . "/" . $facref . ".pdf"; - $filedetail = FAC_OUTPUTDIR . "/" . $facref . "/" . $facref . "-detail.pdf"; - + + $forbidden_chars=array("/","\\",":","*","?","\"","<",">","|","[","]",",",";","="); + $facref = str_replace($forbidden_chars,"_",$fac->ref); + $file = FAC_OUTPUTDIR . "/" . $facref . "/" . $facref . ".pdf"; + print "
| "; if (file_exists($file)) @@ -1196,18 +1196,24 @@ else print ' | '.filesize($file). ' bytes | '; print ''.strftime("%d %b %Y %H:%M:%S",filemtime($file)).' | '; print '|
| Facture détaillée | "; - - print ''.$fac->ref.'-detail.pdf | '; - print ''.filesize($filedetail). ' bytes | '; - print ''.strftime("%d %b %Y %H:%M:%S",filemtime($filedetail)).' | '; - print '
| Facture détaillée | "; + + print ''.$fac->ref.'-detail.pdf | '; + print ''.filesize($dir.$file). ' bytes | '; + print ''.strftime("%d %b %Y %H:%M:%S",filemtime($dir.$file)).' | '; + print '