2
0
forked from Wavyzz/dolibarr

Fix: use generic array for all parts

This commit is contained in:
Regis Houssin
2012-03-01 13:57:31 +08:00
parent 7c4e908639
commit f3cb926c3c
7 changed files with 21 additions and 22 deletions

View File

@@ -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)
{