Update commande.class.php
research additionnal models numbering in additional modules folders
This commit is contained in:
parent
171227e43a
commit
06690431f2
@ -131,18 +131,21 @@ class Commande extends CommonOrder
|
|||||||
|
|
||||||
if (! empty($conf->global->COMMANDE_ADDON))
|
if (! empty($conf->global->COMMANDE_ADDON))
|
||||||
{
|
{
|
||||||
$mybool=false;
|
$mybool=false;
|
||||||
|
$dirmodels=array_merge(array('/'),(array) $conf->modules_parts['models']);
|
||||||
$file = $conf->global->COMMANDE_ADDON.".php";
|
foreach ($dirmodels as $reldir)
|
||||||
$classname = $conf->global->COMMANDE_ADDON;
|
{
|
||||||
|
$file = $conf->global->COMMANDE_ADDON.".php";
|
||||||
// Include file with class
|
$classname = $conf->global->COMMANDE_ADDON;
|
||||||
foreach ($conf->file->dol_document_root as $dirroot)
|
|
||||||
{
|
// Include file with class
|
||||||
$dir = $dirroot."/core/modules/commande/";
|
foreach ($conf->file->dol_document_root as $dirroot)
|
||||||
// Load file with numbering class (if found)
|
{
|
||||||
$mybool|=@include_once $dir.$file;
|
$dir = $dirroot.$reldir."/core/modules/commande/";
|
||||||
}
|
// Load file with numbering class (if found)
|
||||||
|
$mybool|=@include_once $dir.$file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (! $mybool)
|
if (! $mybool)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user