Erreur dans l'affichage du quota disque sur la page d'accueil
This commit is contained in:
parent
7cbee9961d
commit
61bb174d01
|
@ -19,13 +19,13 @@ if (!isset($mode)) { # when included from adm_login, mode is not set
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$totalweb = $quota->get_size_web_sum_user($mem->user["uid"]);
|
$totalweb = $quota->getquota('web');
|
||||||
// $totalweb is in KB, so we call get_size_unit() with it in Bytes
|
if ( $totalweb['u'] > 0 ) {
|
||||||
$t=$quota->get_size_unit($totalweb * 1024);
|
$t=$quota->get_size_unit($totalweb['u'] * 1024);
|
||||||
echo "<p>"._("quota_web")." "; // use quota_web because it's the magically translated string
|
echo "<p>"._("quota_web")." "; // use quota_web because it's the magically translated string
|
||||||
echo sprintf("%.1f", $t['size'])." ".$t['unit'];
|
echo sprintf("%.1f", $t['size'])." ".$t['unit'];
|
||||||
echo "</p>";
|
echo "</p>";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Mails -->
|
<!-- Mails -->
|
||||||
|
|
Loading…
Reference in New Issue