forked from Wavyzz/dolibarr
Fix: use generic array for all parts
This commit is contained in:
@@ -73,7 +73,7 @@ if ($action == 'specimen')
|
||||
|
||||
// Search template files
|
||||
$file=''; $classname=''; $filefound=0;
|
||||
$dirmodels=array_merge(array('/'),$conf->commande_modules);
|
||||
$dirmodels=array_merge(array('/'),$conf->modules_parts['models']);
|
||||
foreach($dirmodels as $reldir)
|
||||
{
|
||||
$file=dol_buildpath($reldir."core/modules/commande/doc/pdf_".$modele.".modules.php",0);
|
||||
@@ -223,6 +223,8 @@ if ($action == 'set_COMMANDE_FREE_TEXT')
|
||||
* View
|
||||
*/
|
||||
|
||||
$dirmodels=array_merge(array('/'),$conf->modules_parts['models']);
|
||||
|
||||
llxHeader();
|
||||
|
||||
$form=new Form($db);
|
||||
@@ -251,8 +253,6 @@ print "</tr>\n";
|
||||
|
||||
clearstatcache();
|
||||
|
||||
$dirmodels=array_merge(array('/'),$conf->commande_modules);
|
||||
|
||||
foreach ($dirmodels as $reldir)
|
||||
{
|
||||
$dir = dol_buildpath($reldir."core/modules/commande/");
|
||||
@@ -384,8 +384,6 @@ print "</tr>\n";
|
||||
|
||||
clearstatcache();
|
||||
|
||||
$dirmodels=array_merge(array('/'),$conf->commande_modules);
|
||||
|
||||
$var=true;
|
||||
foreach ($dirmodels as $reldir)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user