2
0
forked from Wavyzz/dolibarr

Fix: Running fixdosfile onto all project

This commit is contained in:
Laurent Destailleur
2013-07-07 13:17:48 +02:00
parent 2bc650bf61
commit 7c163f7be3
14 changed files with 238 additions and 238 deletions

View File

@@ -136,18 +136,18 @@ class Commande extends CommonOrder
$file = $conf->global->COMMANDE_ADDON.".php";
$classname = $conf->global->COMMANDE_ADDON;
// Include file with class
foreach ($conf->file->dol_document_root as $dirroot)
{
$dir = $dirroot."/core/modules/commande/";
// Load file with numbering class (if found)
$mybool|=@include_once $dir.$file;
}
// Include file with class
foreach ($conf->file->dol_document_root as $dirroot)
{
$dir = $dirroot."/core/modules/commande/";
// Load file with numbering class (if found)
$mybool|=@include_once $dir.$file;
}
if (! $mybool)
{
dol_print_error('',"Failed to include file ".$file);
return '';
if (! $mybool)
{
dol_print_error('',"Failed to include file ".$file);
return '';
}
$obj = new $classname();