Fixed bug #8590: Fileadmins folderoverview don`t show 'B' (for byte) after filesize...
authorBenni Mack <benni.mack@typo3.org>
Thu, 1 Jan 2009 16:49:13 +0000 (16:49 +0000)
committerBenni Mack <benni.mack@typo3.org>
Thu, 1 Jan 2009 16:49:13 +0000 (16:49 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4637 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.file_list.inc

index 73e1485..7931c5f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-01-01  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #8590: Fileadmins folderoverview don`t show 'B' (for byte) after filesize (Thanks to Stefano Kowalke)
        * #7669: Changed elderly while(list()=each()) to foreach calls in t3lib_tstemplate (Credits Oliver Hader) 
        * Fixed bug #8361: Stage change notification emails not send when publishing from Live workspace (Thanks to Andreas Wolf)
        * Fixed bug #9136: Less JS in backend.php / Framehandling problem
index 5d23c57..51ac0fd 100755 (executable)
@@ -335,7 +335,7 @@ class fileList extends t3lib_recordList {
                                        while(list(,$field)=each($this->fieldArray))    {
                                                switch($field)  {
                                                        case 'size':
-                                                               $theData[$field]=t3lib_div::formatSize($theFile[$field]);
+                                                               $theData[$field] = t3lib_div::formatSize($theFile[$field], $GLOBALS['LANG']->getLL('byteSizeUnits', true));
                                                        break;
                                                        case 'rw':
                                                                $theData[$field] = (($theFile['readable']) ? '' : '<span class="typo3-red"><strong>' . $GLOBALS['LANG']->getLL('read', true) . '</strong></span>') . (($theFile['writable']) ? '' : '<span class="typo3-red"><strong>' . $GLOBALS['LANG']->getLL('write', true) . '</strong></span>');
@@ -475,7 +475,7 @@ class fileList extends t3lib_recordList {
                                        while(list(,$field)=each($this->fieldArray))    {
                                                switch($field)  {
                                                        case 'size':
-                                                               $theData[$field]=t3lib_div::formatSize($theFile[$field]);
+                                                               $theData[$field] = t3lib_div::formatSize($theFile[$field], $GLOBALS['LANG']->getLL('byteSizeUnits', true));
                                                        break;
                                                        case 'rw':
                                                                $theData[$field] = (($theFile['readable']) ? '' : '<span class="typo3-red"><strong>' . $GLOBALS['LANG']->getLL('read', true) . '</strong></span>') . (($theFile['writable']) ? '' : '<span class="typo3-red"><strong>' . $GLOBALS['LANG']->getLL('write', true) . '</strong></span>');