summaryrefslogtreecommitdiff
path: root/bin/quotaimg.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-12 16:48:23 +0000
committeralecpl <alec@alec.pl>2008-09-12 16:48:23 +0000
commit6cd00992a2c7de38e0ff7df152fba8ea89012dce (patch)
tree699eb407f8d52876a89d64a7c7659ab8aa8af153 /bin/quotaimg.php
parent85a9130647fff8ffafbd35117705f3ec7ec98ce0 (diff)
- Fixed quota img height/width setting from template (#1484857)
Diffstat (limited to 'bin/quotaimg.php')
-rw-r--r--bin/quotaimg.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/quotaimg.php b/bin/quotaimg.php
index 354f4ebdb..97c8b8630 100644
--- a/bin/quotaimg.php
+++ b/bin/quotaimg.php
@@ -159,7 +159,7 @@ function genQuota($used, $total, $width, $height)
}
$quota_width = $quota / 100 * $width;
- imagefilledrectangle($im, $border, 0, $quota, $height-2*$border, $fill);
+ imagefilledrectangle($im, $border, 0, $quota_width, $height-2*$border, $fill);
$string = $quota . '%';
$mid = floor(($width-(strlen($string)*imagefontwidth($font)))/2)+1;