[TYPO3-core] RFC #8590: Fileadmins folderoverview don`t show 'B' (for byte) after filesize

Stefano Kowalke blueduck at gmx.net
Tue Jun 3 18:11:56 CEST 2008


Martin Kutschker wrote:

> Stefano Kowalke schrieb:
> 
>> Martin Kutschker wrote:
>> 
>>> If there is no B the function can be used for bits (like Kb) and
>>> other units.
>> 
>> I dont understand this. Can you explain this?
> 
> The default of t3lib_div::formatSize() returns only K, etc but not KB.
> So you could use it, without supplying a format string (!), to format a
> value denoting bits. This would be Kb, not KB - note the small b. If you
> change the default this would break the old code.
> 
> So simply leave t3lib_div::formatSize() untouched and use the byteFormat
> label you wanted to introduce.
> 
> Masi


Ok, thank you. I think I understand this now. 

Stefano
-- 
Seit dem 1.1.2008 werden Daten zu jeder E-Mail verdachtsunabhängig gespeichert! 
Weitere Informationen: www.vorratsdatenspeicherung.de
GPG-ID: 0x2B08936D
Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D


More information about the TYPO3-team-core mailing list