New: add directory for external module and other customization
This commit is contained in:
parent
38df4415ed
commit
7f5d4856da
@ -84,10 +84,11 @@ $i = 0; // is a sequencer of modules found
|
|||||||
$j = 0; // j is module number. Automatically affeted if module number not defined.
|
$j = 0; // j is module number. Automatically affeted if module number not defined.
|
||||||
foreach ($conf->file->dol_document_root as $dirroot)
|
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
|
// Load modules attributes in arrays (name, numero, orders) from dir directory
|
||||||
//print $dir."\n<br>";
|
print $dir."\n<br>";
|
||||||
dol_syslog("Scan directory ".$dir." for modules");
|
dol_syslog("Scan directory ".$dir." for modules");
|
||||||
$handle=@opendir($dir);
|
$handle=@opendir($dir);
|
||||||
if ($handle)
|
if ($handle)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user