Fixed bug #14968: Add unit tests for t3lib_div::validIP (Thanks to Nikolas Hagelstein...
[Packages/TYPO3.CMS.git] / typo3 / class.file_list.inc
index 5225c44..58ea172 100644 (file)
@@ -180,7 +180,7 @@ class fileList extends t3lib_recordList {
                                if ($this->clickMenus) $otherMarkers['PAGE_ICON'] = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($otherMarkers['PAGE_ICON'],$path);
 
                                $buttons['level_up'] .= $this->linkWrapDir(t3lib_iconWorks::getSpriteIcon('actions-view-go-up', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.upOneLevel', 1))), $theFile['path']);
-                               $otherMarkers['TITLE'] .= t3lib_div::removeXSS(t3lib_div::fixed_lgd_cs($title,-($this->fixedL+20)));    // No HTML specialchars here - HTML like <b> </b> is allowed
+                               $otherMarkers['TITLE'] .= t3lib_div::removeXSS(t3lib_div::fixed_lgd_cs($title,-($this->fixedL+20)));    // No HTML specialchars here - HTML like <strong> </strong> is allowed
 
                                // this is the root page
                        } else {
@@ -278,8 +278,8 @@ class fileList extends t3lib_recordList {
                                $theData[$v] = $theT;
                        }
                }
-               $out.=$this->addelement(1, $levelUp, $theData, ' class="c-headLine"', '');
-               $out.=$iOut;
+               $out .= '<thead>' . $this->addelement(1, $levelUp, $theData, ' class="t3-row-header"', '') . '</thead>';
+               $out .= '<tbody>' . $iOut . '</tbody>';
 
                        // half line is drawn
 
@@ -290,7 +290,7 @@ class fileList extends t3lib_recordList {
                <!--
                        File list table:
                -->
-                       <table border="0" cellpadding="0" cellspacing="1" id="typo3-filelist">
+                       <table cellpadding="0" cellspacing="0" id="typo3-filelist">
                                '.$out.'
                        </table>';
        }
@@ -331,7 +331,7 @@ class fileList extends t3lib_recordList {
                                        list($title,$icon,$path) =  $this->dirData($theFile);
 
                                                // The icon with link
-                                       $theIcon = t3lib_iconWorks::getSpriteIconForFile($theFile['fileext'], array('title' => htmlspecialchars($theFile['file'])));
+                                       $theIcon = t3lib_iconWorks::getSpriteIconForFile( ($theFile['type'] == 'dir' ? 'folder' : $theFile['fileext']), array('title' => htmlspecialchars($theFile['file'])));
                                        if ($this->clickMenus) $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($theIcon,$path);
 
                                                //      Preparing and getting the data-array
@@ -657,7 +657,7 @@ class fileList extends t3lib_recordList {
                $elFromTable = $this->clipObj->elFromTable('_FILE');
                if (@is_dir($fullIdent) && count($elFromTable)) {
                        $cells[]='<a href="'.htmlspecialchars($this->clipObj->pasteUrl('_FILE',$fullIdent)).'" onclick="return '.htmlspecialchars($this->clipObj->confirmMsg('_FILE',$fullIdent,'into',$elFromTable)).'" title="' . $GLOBALS['LANG']->getLL('clip_pasteInto', TRUE) . '">'.
-                         t3lib_iconWorks::getSpriteIcon('document-paste-into') . 
+                         t3lib_iconWorks::getSpriteIcon('actions-document-paste-into') . 
                        '</a>';
                }