diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index f4c610a0613..d52edaa14d9 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -1472,7 +1472,7 @@ if ($id > 0)
$var=true;
- $somethingshown=$formfile->show_documents('agenda',$object->id,$filedir,$urlsource,$genallowed,$delallowed,'',0,0,0,0,0,'','','',$object->default_lang);
+ print $formfile->showdocuments('agenda',$object->id,$filedir,$urlsource,$genallowed,$delallowed,'',0,0,0,0,0,'','','',$object->default_lang);
print '
';
diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index 68b59f528bd..bbdb503b873 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -2340,8 +2340,6 @@ if ($action == 'create')
if ($action != 'presend')
{
print '
';
- // print '
| ';
- // print ''; // ancre
/*
* Documents generes
@@ -2354,7 +2352,7 @@ if ($action == 'create')
$var = true;
- $somethingshown = $formfile->show_documents('propal', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', 0, '', $soc->default_lang);
+ print $formfile->showdocuments('propal', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', 0, '', $soc->default_lang);
// Show links to link elements
$linktoelem = $form->showLinkToObjectBlock($object, null, array('propal'));
@@ -2362,14 +2360,12 @@ if ($action == 'create')
print ' | ';
// List of actions on element
include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
$formactions = new FormActions($db);
$somethingshown = $formactions->showactions($object, 'propal', $socid);
- // print ' |
';
print '
';
}
diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php
index 6730bf99750..313fef16e2c 100644
--- a/htdocs/commande/card.php
+++ b/htdocs/commande/card.php
@@ -2563,7 +2563,7 @@ if ($action == 'create' && $user->rights->commande->creer)
$urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
$genallowed = $user->rights->commande->creer;
$delallowed = $user->rights->commande->supprimer;
- $somethingshown = $formfile->show_documents('commande', $comref, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', '', '', $soc->default_lang);
+ print $formfile->showdocuments('commande', $comref, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', '', '', $soc->default_lang);
// Show links to link elements
diff --git a/htdocs/compta/paiement/cheque/card.php b/htdocs/compta/paiement/cheque/card.php
index 3ca8eb21e6e..94686162687 100644
--- a/htdocs/compta/paiement/cheque/card.php
+++ b/htdocs/compta/paiement/cheque/card.php
@@ -801,7 +801,7 @@ if ($action != 'new')
$filedir=$dir.get_exdir($object->ref,0,1,0,$object,'cheque') . dol_sanitizeFileName($object->ref);
$urlsource=$_SERVER["PHP_SELF"]."?id=".$object->id;
- $formfile->show_documents('remisecheque', $filename, $filedir, $urlsource, 1, 1);
+ print $formfile->showdocuments('remisecheque', $filename, $filedir, $urlsource, 1, 1);
print '
';
}
diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php
index e8b8a990417..86e45ade086 100644
--- a/htdocs/contrat/card.php
+++ b/htdocs/contrat/card.php
@@ -2038,7 +2038,7 @@ else
$var = true;
- $somethingshown = $formfile->show_documents('contract', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', 0, '', $soc->default_lang);
+ print $formfile->showdocuments('contract', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', 0, '', $soc->default_lang);
// Show links to link elements
diff --git a/htdocs/don/card.php b/htdocs/don/card.php
index c5c5c402af8..125f6ea656e 100644
--- a/htdocs/don/card.php
+++ b/htdocs/don/card.php
@@ -805,7 +805,7 @@ if (! empty($id) && $action != 'edit')
print "
";
- print '