2
0
forked from Wavyzz/dolibarr

New: add DOL_CUSTOM_PATH

This commit is contained in:
Regis Houssin
2010-12-15 07:54:40 +00:00
parent 98ff3eb6ff
commit 1e69b95c9f
2 changed files with 7 additions and 5 deletions

View File

@@ -84,7 +84,8 @@ $i = 0; // is a sequencer of modules found
$j = 0; // j is module number. Automatically affeted if module number not defined.
foreach ($conf->file->dol_document_root as $dirroot)
{
$dir = $dirroot . "/includes/modules/";
if (preg_match('/custom$/i',$dirroot)) $dir = $dirroot . "/modules/";
else $dir = $dirroot . "/includes/modules/";
// Load modules attributes in arrays (name, numero, orders) from dir directory
//print $dir."\n<br>";