Rend le parametre withpicto obligatoire dans getNomUrl
This commit is contained in:
parent
58c8808358
commit
cd7b6927e4
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue