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
f6ede6c3
Commit
f6ede6c3
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Disable experimental menus
parent
04f2931c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/class/html.formadmin.class.php
+7
-4
7 additions, 4 deletions
htdocs/core/class/html.formadmin.class.php
with
7 additions
and
4 deletions
htdocs/core/class/html.formadmin.class.php
+
7
−
4
View file @
f6ede6c3
...
...
@@ -184,15 +184,17 @@ class FormAdmin
}
/**
* Ret
o
urn
e la liste deroulante des menus disponibl
es
* @param selected Menu pre-select
ionne
e
* @param htmlname N
om de la zone
select
* @param dirmenuarray
Repertoir
es
a
scan
ner
* Return
combo list of available menu famili
es
* @param selected Menu pre-selecte
d
* @param htmlname N
ame of html
select
* @param dirmenuarray
Directori
es
to
scan
*/
function
select_menu_families
(
$selected
=
''
,
$htmlname
,
$dirmenuarray
)
{
global
$langs
,
$conf
;
$expdevmenu
=
array
(
'iphone_backoffice.php'
,
'iphone_frontoffice.php'
);
// Menu to disable if $conf->global->MAIN_FEATURES_LEVEL is not set
$menuarray
=
array
();
foreach
(
$dirmenuarray
as
$dirmenu
)
...
...
@@ -208,6 +210,7 @@ class FormAdmin
if
(
preg_match
(
'/^default/i'
,
$filelib
))
continue
;
if
(
preg_match
(
'/^empty/i'
,
$filelib
))
continue
;
if
(
preg_match
(
'/\.lib/i'
,
$filelib
))
continue
;
if
(
empty
(
$conf
->
global
->
MAIN_FEATURES_LEVEL
)
&&
in_array
(
$file
,
$expdevmenu
))
continue
;
$menuarray
[
$filelib
]
=
1
;
}
...
...
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