Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into 7.0
Conflicts: htdocs/societe/class/societe.class.php
This commit is contained in:
commit
08ab67289b
@ -2582,18 +2582,15 @@ class Societe extends CommonObject
|
||||
|
||||
if (! empty($conf->global->SOCIETE_CODECOMPTA_ADDON))
|
||||
{
|
||||
$file='';
|
||||
$res=false;
|
||||
$dirsociete=array_merge(array('/core/modules/societe/'), $conf->modules_parts['societe']);
|
||||
foreach ($dirsociete as $dirroot)
|
||||
{
|
||||
if (file_exists(DOL_DOCUMENT_ROOT.'/'.$dirroot.$conf->global->SOCIETE_CODECOMPTA_ADDON.".php"))
|
||||
{
|
||||
$file=$dirroot.$conf->global->SOCIETE_CODECOMPTA_ADDON.".php";
|
||||
break;
|
||||
}
|
||||
$res=dol_include_once($dirroot.$conf->global->SOCIETE_CODECOMPTA_ADDON.'.php');
|
||||
if ($res) break;
|
||||
}
|
||||
|
||||
if (! empty($file))
|
||||
if ($res)
|
||||
{
|
||||
dol_include_once($file);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user