Ticket #1484857 (new Bugs)
Quota image rendered wrong with non default width
| Reported by: | oscar | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-beta |
| Component: | User Interface | Version: | 0.1-stable |
| Severity: | trivial | Keywords: | |
| Cc: |
Description
When setting a different width for the quota image, it renders wrong (100% is only 100px, instead of the width).
Index: bin/quotaimg.php
===================================================================
--- bin/quotaimg.php (revision 1186)
+++ bin/quotaimg.php (arbetskopia)
@@ -159,9 +159,10 @@
}
$quota_width = $quota / 100 * $width;
- imagefilledrectangle($im, $border, 0, $quota, $height-2*$border, $fill);
+ imagefilledrectangle($im, $border, 0, $quota_width, $height-2*$border, $fill);
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
