Skip to content
Snippets Groups Projects
Commit 7f5d4856 authored by Regis Houssin's avatar Regis Houssin
Browse files

New: add directory for external module and other customization

parent 38df4415
No related branches found
No related tags found
No related merge requests found
...@@ -84,10 +84,11 @@ $i = 0; // is a sequencer of modules found ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment