Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
e75e35b0
Commit
e75e35b0
authored
Aug 23, 2012
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented: FS#2300 - Additional addons can not populate $wb['top_menu_modulename']
parent
0799f83b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
interface/web/nav.php
interface/web/nav.php
+2
-0
No files found.
interface/web/nav.php
View file @
e75e35b0
...
...
@@ -56,6 +56,8 @@ if(isset($_GET['nav']) && $_GET['nav'] == 'top') {
if
(
is_file
(
$mt
.
'/lib/module.conf.php'
))
{
if
(
!
preg_match
(
"/^[a-z]
{
2,20
}
$/i"
,
$mt
))
die
(
'module name contains unallowed chars.'
);
include_once
(
$mt
.
'/lib/module.conf.php'
);
$language
=
(
isset
(
$_SESSION
[
's'
][
'user'
][
'language'
]))
?
$_SESSION
[
's'
][
'user'
][
'language'
]
:
$conf
[
'language'
];
$app
->
load_language_file
(
'web/'
.
$mt
.
'/lib/'
.
$language
.
'.lng'
);
$active
=
(
$module
[
'name'
]
==
$_SESSION
[
's'
][
'module'
][
'name'
])
?
1
:
0
;
$topnav
[]
=
array
(
'title'
=>
$app
->
lng
(
$module
[
'title'
]),
'active'
=>
$active
,
...
...
Write
Preview
Markdown
is supported
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