Project

General

Profile

Feature #19116 » 8990_#2_class.file_list.inc.diff

Administrator Admin, 2008-07-21 10:55

View differences:

typo3/class.file_list.inc (working copy)
* @return array (title, icon, path)
*/
function dirData($theFile) {
$path = $theFile['path'].$theFile['file'].'/';
$webpath=t3lib_BEfunc::getPathType_web_nonweb($path);
$path = $theFile['path'] . $theFile['file'] . '/';
$webpath = t3lib_BEfunc::getPathType_web_nonweb($path);
$title=htmlspecialchars($theFile['file']);
$icon = 'gfx/i/_icon_'.$webpath.'folders.gif';
if ($title=='_temp_') {
$title = htmlspecialchars($theFile['file']);
$icon = 'gfx/i/_icon_' . $webpath . 'folders.gif';
if ($title == '_temp_') {
$icon = 'gfx/i/sysf.gif';
$title='<b>TEMP</b>';
$title = '<b>' . $GLOBALS['LANG']->getLL('temp', true) . '</b>';
}
if ($title == '_recycler_') {
$icon = 'gfx/i/recycler.gif';
$title='<b>RECYCLER</b>';
$title = '<b>' . $GLOBALS['LANG']->getLL('recycler', true) . '</b>';
}
$icon = $theFile['writable'] ? 'gfx/i/_icon_'.$webpath.'folders_ro.gif' : $icon;
$icon = $theFile['writable'] ? 'gfx/i/_icon_' . $webpath . 'folders_ro.gif' : $icon;
return Array($title,$icon,$path);
return Array($title, $icon, $path);
}
/**
(3-3/3)