diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 0454e812706..316d37a7271 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -1146,7 +1146,7 @@ if ($_GET['propalid'] > 0) { $discount=new DiscountAbsolute($db); $discount->fetch($objp->fk_remise_except); - print ' - '.$langs->transnoentities("DiscountFromCreditNote",$discount->getNomUrl()); + print ' - '.$langs->transnoentities("DiscountFromCreditNote",$discount->getNomUrl(0)); } else { diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 7f410892e86..949777bd22d 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1648,7 +1648,7 @@ if ($_GET['action'] == 'create') { $discount=new DiscountAbsolute($db); $discount->fetch($objp->fk_remise_except); - print $langs->transnoentities("DiscountFromCreditNote",$discount->getNomUrl()); + print $langs->transnoentities("DiscountFromCreditNote",$discount->getNomUrl(0)); } else { @@ -2289,7 +2289,7 @@ else { $discount=new DiscountAbsolute($db); $discount->fetch($objp->fk_remise_except); - print ' - '.$langs->transnoentities("DiscountFromCreditNote",$discount->getNomUrl()); + print ' - '.$langs->transnoentities("DiscountFromCreditNote",$discount->getNomUrl(0)); } else { diff --git a/htdocs/discount.class.php b/htdocs/discount.class.php index 61287896e35..8a14a58c1c0 100644 --- a/htdocs/discount.class.php +++ b/htdocs/discount.class.php @@ -213,7 +213,7 @@ class DiscountAbsolute \param option Sur quoi pointe le lien \return string Chaine avec URL */ - function getNomUrl($withpicto=0,$option='') + function getNomUrl($withpicto,$option='') { global $langs;