Commit 61bb174d authored by Alan Garcia's avatar Alan Garcia
Browse files

Erreur dans l'affichage du quota disque sur la page d'accueil

parent 7cbee996
......@@ -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'])."&nbsp;".$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'])."&nbsp;".$t['unit'];
echo "</p>";
}
?>
<!-- Mails -->
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment