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.

This commit is contained in:
Laurent Destailleur
2009-11-29 14:53:52 +00:00
parent 87efd5bc3c
commit bcd3f24ab7

View File

@@ -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))
{