Fix var not defined
This commit is contained in:
parent
cca87f3d5a
commit
df4b3b09d2
@ -4116,15 +4116,15 @@ class Facture extends CommonInvoice
|
|||||||
|
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
|
|
||||||
if (! dol_strlen($modele)) {
|
if (! dol_strlen($modele))
|
||||||
|
{
|
||||||
$modele = 'crabe';
|
$modele = 'crabe';
|
||||||
$thisTypeConfName = 'FACTURE_ADDON_PDF_'.$type;
|
$thisTypeConfName = 'FACTURE_ADDON_PDF_'.$this->type;
|
||||||
|
|
||||||
if ($this->modelpdf) {
|
if ($this->modelpdf) {
|
||||||
$modele = $this->modelpdf;
|
$modele = $this->modelpdf;
|
||||||
}elseif (! empty($conf->global->{'FACTURE_ADDON_PDF_'.$this->type})){
|
} elseif (! empty($conf->global->$thisTypeConfName)) {
|
||||||
$modele = $conf->global->{'FACTURE_ADDON_PDF_'.$this->type} ;
|
$modele = $conf->global->$thisTypeConfName;
|
||||||
} elseif (! empty($conf->global->FACTURE_ADDON_PDF)) {
|
} elseif (! empty($conf->global->FACTURE_ADDON_PDF)) {
|
||||||
$modele = $conf->global->FACTURE_ADDON_PDF;
|
$modele = $conf->global->FACTURE_ADDON_PDF;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user