Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Carlos Gonzalez
ISPConfig 3
Commits
baf703b9
Commit
baf703b9
authored
Oct 15, 2018
by
Helmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
interface/web/dashboard/dashlets/databasequota.php
interface/web/dashboard/dashlets/databasequota.php
+5
-0
interface/web/dashboard/dashlets/quota.php
interface/web/dashboard/dashlets/quota.php
+5
-0
No files found.
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