Skip to content
Snippets Groups Projects
Commit bcd3f24a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: We must use conf->global instead of constant. If not and constant is...

Fix: We must use conf->global instead of constant. If not and constant is defined twice (with 2 differents entity values), we use the wrong one.
parent 87efd5bc
No related branches found
No related tags found
No related merge requests found
......@@ -473,9 +473,9 @@ class CommandeFournisseur extends Commande
$modelisok=0;
$liste=array();
if (defined('COMMANDE_SUPPLIER_ADDON') && COMMANDE_SUPPLIER_ADDON)
if (! empty($conf->global->COMMANDE_SUPPLIER_ADDON))
{
$file = COMMANDE_SUPPLIER_ADDON.'.php';
$file = $conf->global->COMMANDE_SUPPLIER_ADDON.'.php';
if (is_readable($dir.'/'.$file))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment