Bug #18896 » #4_8590_class.file_list.inc.diff
typo3/class.file_list.inc (working copy) | ||
---|---|---|
|
||
// Preparing and getting the data-array
|
||
$theData = Array();
|
||
$byteFormat = $GLOBALS['LANG']->getLL('byteFormat', true);
|
||
|
||
reset($this->fieldArray);
|
||
while(list(,$field)=each($this->fieldArray)) {
|
||
switch($field) {
|
||
... | ... | |
while(list(,$field)=each($this->fieldArray)) {
|
||
switch($field) {
|
||
case 'size':
|
||
$theData[$field]=t3lib_div::formatSize($theFile[$field]);
|
||
$theData[$field] = t3lib_div::formatSize($theFile[$field], $byteFormat);
|
||
break;
|
||
case 'rw':
|
||
$theData[$field]= (($theFile['readable'])?'':'<span class="typo3-red"><b>R</b></span>').(($theFile['writable'])?'':'<span class="typo3-red"><b>W</b></span>');
|
||