Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
fbb35420
Commit
fbb35420
authored
Dec 07, 2016
by
Côme Chilliet
Browse files
Do not let plugins rename menu sections
parent
18c6a26c
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/class_config.inc
View file @
fbb35420
...
...
@@ -1039,7 +1039,9 @@ class config {
if
(
isset
(
$plInfo
[
'plMenuProvider'
])
&&
$plInfo
[
'plMenuProvider'
])
{
list
(
$sections
,
$entries
)
=
$class
::
getMenuEntries
();
foreach
(
$sections
as
$section
=>
$infos
)
{
$this
->
data
[
'SECTIONS'
][
$section
]
=
array_change_key_case
(
$infos
,
CASE_UPPER
);
if
(
!
isset
(
$this
->
data
[
'SECTIONS'
][
$section
]))
{
$this
->
data
[
'SECTIONS'
][
$section
]
=
array_change_key_case
(
$infos
,
CASE_UPPER
);
}
if
(
!
isset
(
$this
->
data
[
'MENU'
][
$section
]))
{
$this
->
data
[
'MENU'
][
$section
]
=
array
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment