diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 377f41ba4cc..57fad75e041 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -5513,7 +5513,8 @@ if ($action == 'create') { } // Show direct download link - if ($object->statut != Facture::STATUS_DRAFT && !empty($conf->global->INVOICE_ALLOW_EXTERNAL_DOWNLOAD)) { + //if ($object->statut != Facture::STATUS_DRAFT && !empty($conf->global->INVOICE_ALLOW_EXTERNAL_DOWNLOAD)) { + if ($object->statut != Facture::STATUS_DRAFT) { print '
'."\n"; print showDirectDownloadLink($object).'
'; } diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index da8416601be..de5738db9af 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -1330,8 +1330,8 @@ class FormFile print ''; if ($relativedir && $filearray[$key]['rowid'] > 0) { // only if we are in a mode where a scan of dir were done and we have id of file in ECM table if ($editline) { - print $langs->trans("FileSharedViaALink").' '; - print ' '; + print ' '; + print ' '; } else { if ($file['share']) { // Define $urlwithroot diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index c082672c200..d2e6cd368ed 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -8803,11 +8803,14 @@ function showDirectDownloadLink($object) $out = ''; $url = $object->getLastMainDocLink($object->element); + $out .= img_picto($langs->trans("PublicDownloadLinkdesc"), 'globe').' '.$langs->trans("DirectDownloadLink").'
'; if ($url) { - $out .= img_picto($langs->trans("PublicDownloadLinkdesc"), 'globe').' '.$langs->trans("DirectDownloadLink").'
'; $out .= ''; $out .= ajax_autoselect("directdownloadlink", 0); + } else { + $out .= ''; } + return $out; } diff --git a/htdocs/core/lib/payments.lib.php b/htdocs/core/lib/payments.lib.php index 3eaeb4fc17a..494a92d33e3 100644 --- a/htdocs/core/lib/payments.lib.php +++ b/htdocs/core/lib/payments.lib.php @@ -173,7 +173,7 @@ function showOnlinePaymentUrl($type, $ref) $out = img_picto('', 'globe').' '.$langs->trans("ToOfferALinkForOnlinePayment", $servicename).'
'; $url = getOnlinePaymentUrl(0, $type, $ref); $out .= ''; + $out .= ''.img_picto('', 'globe', 'class="paddingleft"').''; $out .= ajax_autoselect("onlinepaymenturl", 0); return $out; }