Opened 12 years ago
Closed 12 years ago
#18645 closed Cleanup/optimization (fixed)
Simplified filesizeformat
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Template system | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
You will find attached a patch for the filesizeformat template filter.
The patch removes all the multiplications and uses bit shifting instead.
This simplifies the code and (hopefully) makes it easier to read.
Not a major change at all, but just in case.
'Hope that helps :)
Attachments (1)
Change History (2)
by , 12 years ago
Attachment: | defaultfilters.diff added |
---|
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch for filesizeformat