Fix: remove deprecated function and avoid warnings
This commit is contained in:
parent
e36af3085a
commit
8a5fe809f4
@ -436,7 +436,7 @@ abstract class ActionsCardCommon
|
|||||||
$res=dol_include_once($dirroot.$module.'.php');
|
$res=dol_include_once($dirroot.$module.'.php');
|
||||||
if ($res) break;
|
if ($res) break;
|
||||||
}
|
}
|
||||||
$modCodeClient = new $module;
|
$modCodeClient = new $module($db);
|
||||||
$this->tpl['auto_customercode'] = $modCodeClient->code_auto;
|
$this->tpl['auto_customercode'] = $modCodeClient->code_auto;
|
||||||
// We verified if the tag prefix is used
|
// We verified if the tag prefix is used
|
||||||
if ($modCodeClient->code_auto) $this->tpl['prefix_customercode'] = $modCodeClient->verif_prefixIsUsed();
|
if ($modCodeClient->code_auto) $this->tpl['prefix_customercode'] = $modCodeClient->verif_prefixIsUsed();
|
||||||
@ -714,4 +714,4 @@ abstract class ActionsCardCommon
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -1013,7 +1013,7 @@ else
|
|||||||
$res=dol_include_once($dirroot.$module.'.php');
|
$res=dol_include_once($dirroot.$module.'.php');
|
||||||
if ($res) break;
|
if ($res) break;
|
||||||
}
|
}
|
||||||
$modCodeClient = new $module;
|
$modCodeClient = new $module($db);
|
||||||
// We verified if the tag prefix is used
|
// We verified if the tag prefix is used
|
||||||
if ($modCodeClient->code_auto)
|
if ($modCodeClient->code_auto)
|
||||||
{
|
{
|
||||||
@ -1031,7 +1031,7 @@ else
|
|||||||
$res=dol_include_once($dirroot.$module.'.php');
|
$res=dol_include_once($dirroot.$module.'.php');
|
||||||
if ($res) break;
|
if ($res) break;
|
||||||
}
|
}
|
||||||
$modCodeFournisseur = new $module;
|
$modCodeFournisseur = new $module($db);
|
||||||
// On verifie si la balise prefix est utilisee
|
// On verifie si la balise prefix est utilisee
|
||||||
if ($modCodeFournisseur->code_auto)
|
if ($modCodeFournisseur->code_auto)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user