diff --git a/htdocs/comm/propal/apercu.php b/htdocs/comm/propal/apercu.php
index b7ce71ff61b..f899ac8ade1 100644
--- a/htdocs/comm/propal/apercu.php
+++ b/htdocs/comm/propal/apercu.php
@@ -273,6 +273,7 @@ elseif (file_exists($fileimagebis))
print '
'; } } +} print ''; diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php index e005cfa951e..e0531e77766 100644 --- a/htdocs/commande/apercu.php +++ b/htdocs/commande/apercu.php @@ -141,15 +141,15 @@ if ($_GET["id"] > 0) { * Documents */ $commanderef = sanitize_string($commande->ref); - $file = $conf->commande->dir_output . "/" . $commanderef . "/" . $commanderef . ".pdf"; - $filedetail = $conf->commande->dir_output . "/" . $commanderef . "/" . $commanderef . "-detail.pdf"; + $dir_output = $conf->commande->dir_output . "/"; + $filepath = $dir_output . $commanderef . "/"; + $file = $filepath . $commanderef . ".pdf"; + $filedetail = $filepath . $commanderef . "-detail.pdf"; $relativepath = "${commanderef}/${commanderef}.pdf"; $relativepathdetail = "${commanderef}/${commanderef}-detail.pdf"; // Chemin vers png aperçus $relativepathimage = "${commanderef}/${commanderef}.pdf.png"; - $relativepathimagebis = "${commanderef}/${commanderef}.pdf.png.0"; - $relativepathimagebis2 = "${commanderef}/${commanderef}.pdf.png.1"; $fileimage = $file.".png"; // Si PDF d'1 page $fileimagebis = $file.".png.0"; // Si PDF de plus d'1 page @@ -237,7 +237,7 @@ if ($_GET["id"] > 0) { // ligne 7 // partie Gauche print '
';
- print '
';
+ }
+ }
}
diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php
index dba3d33bdc6..66816ed01d4 100644
--- a/htdocs/compta/facture/apercu.php
+++ b/htdocs/compta/facture/apercu.php
@@ -268,6 +268,7 @@ elseif (file_exists($fileimagebis))
print '
'; } } +} print '';