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
|
||||
|
||||
$totalweb = $quota->get_size_web_sum_user($mem->user["uid"]);
|
||||
// $totalweb is in KB, so we call get_size_unit() with it in Bytes
|
||||
$t=$quota->get_size_unit($totalweb * 1024);
|
||||
echo "<p>"._("quota_web")." "; // use quota_web because it's the magically translated string
|
||||
echo sprintf("%.1f", $t['size'])." ".$t['unit'];
|
||||
echo "</p>";
|
||||
|
||||
$totalweb = $quota->getquota('web');
|
||||
if ( $totalweb['u'] > 0 ) {
|
||||
$t=$quota->get_size_unit($totalweb['u'] * 1024);
|
||||
echo "<p>"._("quota_web")." "; // use quota_web because it's the magically translated string
|
||||
echo sprintf("%.1f", $t['size'])." ".$t['unit'];
|
||||
echo "</p>";
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Mails -->
|
||||
|
|
Loading…
Reference in New Issue