Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
e75e35b0
Commit
e75e35b0
authored
Aug 23, 2012
by
tbrehm
Browse files
Implemented: FS#2300 - Additional addons can not populate $wb['top_menu_modulename']
parent
0799f83b
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/nav.php
View file @
e75e35b0
...
@@ -56,6 +56,8 @@ if(isset($_GET['nav']) && $_GET['nav'] == 'top') {
...
@@ -56,6 +56,8 @@ if(isset($_GET['nav']) && $_GET['nav'] == 'top') {
if
(
is_file
(
$mt
.
'/lib/module.conf.php'
))
{
if
(
is_file
(
$mt
.
'/lib/module.conf.php'
))
{
if
(
!
preg_match
(
"/^[a-z]
{
2,20
}
$/i"
,
$mt
))
die
(
'module name contains unallowed chars.'
);
if
(
!
preg_match
(
"/^[a-z]
{
2,20
}
$/i"
,
$mt
))
die
(
'module name contains unallowed chars.'
);
include_once
(
$mt
.
'/lib/module.conf.php'
);
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
;
$active
=
(
$module
[
'name'
]
==
$_SESSION
[
's'
][
'module'
][
'name'
])
?
1
:
0
;
$topnav
[]
=
array
(
'title'
=>
$app
->
lng
(
$module
[
'title'
]),
$topnav
[]
=
array
(
'title'
=>
$app
->
lng
(
$module
[
'title'
]),
'active'
=>
$active
,
'active'
=>
$active
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment