|
@@ 20-23 (lines=4) @@
|
| 17 |
|
|
| 18 |
|
// Load object modCodeTiers |
| 19 |
|
$module=(! empty($conf->global->SOCIETE_CODECLIENT_ADDON)?$conf->global->SOCIETE_CODECLIENT_ADDON:'mod_codeclient_leopard'); |
| 20 |
|
if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') |
| 21 |
|
{ |
| 22 |
|
$module = substr($module, 0, dol_strlen($module)-4); |
| 23 |
|
} |
| 24 |
|
$dirsociete=array_merge(array('/core/modules/societe/'),$conf->modules_parts['societe']); |
| 25 |
|
foreach ($dirsociete as $dirroot) |
| 26 |
|
{ |
|
@@ 33-36 (lines=4) @@
|
| 30 |
|
$modCodeClient = new $module; |
| 31 |
|
// Load object modCodeFournisseur |
| 32 |
|
$module=(! empty($conf->global->SOCIETE_CODECLIENT_ADDON)?$conf->global->SOCIETE_CODECLIENT_ADDON:'mod_codeclient_leopard'); |
| 33 |
|
if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') |
| 34 |
|
{ |
| 35 |
|
$module = substr($module, 0, dol_strlen($module)-4); |
| 36 |
|
} |
| 37 |
|
$dirsociete=array_merge(array('/core/modules/societe/'),$conf->modules_parts['societe']); |
| 38 |
|
foreach ($dirsociete as $dirroot) |
| 39 |
|
{ |