forked from Wavyzz/dolibarr
Rend le parametre withpicto obligatoire dans getNomUrl
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user