Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
7f5d4856
Commit
7f5d4856
authored
14 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
New: add directory for external module and other customization
parent
38df4415
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/admin/modules.php
+3
-2
3 additions, 2 deletions
htdocs/admin/modules.php
with
3 additions
and
2 deletions
htdocs/admin/modules.php
+
3
−
2
View file @
7f5d4856
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment