Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Carlos Gonzalez
ISPConfig 3
Commits
baf703b9
Commit
baf703b9
authored
Oct 15, 2018
by
Helmo
Browse files
Do not show db or site quota when the sites module is not active
parent
3f8c72ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/dashboard/dashlets/databasequota.php
View file @
baf703b9
...
...
@@ -8,6 +8,11 @@ class dashlet_databasequota {
//* Loading Template
$app
->
uses
(
'tpl,quota_lib'
);
$modules
=
$_SESSION
[
's'
][
'user'
][
'modules'
];
if
(
!
in_array
(
$modules
,
'sites'
))
{
return
''
;
}
$tpl
=
new
tpl
;
$tpl
->
newTemplate
(
"dashlets/templates/databasequota.htm"
);
...
...
interface/web/dashboard/dashlets/quota.php
View file @
baf703b9
...
...
@@ -8,6 +8,11 @@ class dashlet_quota {
//* Loading Template
$app
->
uses
(
'tpl,quota_lib'
);
$modules
=
$_SESSION
[
's'
][
'user'
][
'modules'
];
if
(
!
in_array
(
$modules
,
'sites'
))
{
return
''
;
}
$tpl
=
new
tpl
;
$tpl
->
newTemplate
(
"dashlets/templates/quota.htm"
);
...
...
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