Fixed bug #9844: Filepermissons (RW) in filelist are hardcoded
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 15 Dec 2008 08:25:11 +0000 (08:25 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 15 Dec 2008 08:25:11 +0000 (08:25 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4554 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.file_list.inc
typo3/sysext/lang/locallang_mod_file_list.xml

index 725ac6b..c9a9252 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-15  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #9844: Filepermissons (RW) in filelist are hardcoded
+
 2008-12-12  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #9884: enhancements to memcached caching backend
index 8221e8e..5d23c57 100755 (executable)
@@ -338,7 +338,7 @@ class fileList extends t3lib_recordList {
                                                                $theData[$field]=t3lib_div::formatSize($theFile[$field]);
                                                        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>');
+                                                               $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>');
                                                        break;
                                                        case 'fileext':
                                                                $theData[$field]=strtoupper($theFile['fileext']);
@@ -478,7 +478,7 @@ class fileList extends t3lib_recordList {
                                                                $theData[$field]=t3lib_div::formatSize($theFile[$field]);
                                                        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>');
+                                                               $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>');
                                                        break;
                                                        case 'fileext':
                                                                $theData[$field]=strtoupper($theFile[$field]);
index 9b40bb2..a5a9140 100755 (executable)
                        <label index="c__REF_">Ref</label>                      
                        <label index="files">files</label>
                        <label index="temp">Temporary files</label>
+                       <label index="read">R</label>
                        <label index="recycler">Recycler</label>        
                        <label index="mlang_labels_tablabel">Listing of files in the directory</label>
                        <label index="mlang_labels_tabdescr">This is the file administration system in TYPO3. It allows you to access the file mounts of your login. Through this module you can upload, copy, move an delete files on the server.</label>
                        <label index="mlang_tabs_tab">Filelist</label>
+                       <label index="write">W</label>
                </languageKey>
        </data>
 </T3locallang>
\ No newline at end of file