Pluf Framework

Pluf Framework Commit Details


Date:2009-09-17 07:52:36 (15 years 3 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:db7bf26632ef0772755d95c97781f458c5381fe6
Parents: 616bac872d2ded921ea6fbe61cd7e4d58ed859d1
Message:Correctly handle the 0/1 byte case in the file size translation.

Changes:

File differences

src/Pluf/Utils.php
102102
103103
104104
105
105
106106
107107
108108
} elseif ($size >= 1000) {
$mysize = sprintf('%01.2f', $size/1000).' '.__('kB');
} else {
$mysize = sprintf('%d', $size).' '.__('bytes');
$mysize = sprintf(_n('%d byte', '%d bytes', $size), $size);
}
return $mysize;
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05386s using 13 queries.