Index: typo3/sysext/reports/mod/mod_styles.css =================================================================== --- typo3/sysext/reports/mod/mod_styles.css (revision 6127) +++ typo3/sysext/reports/mod/mod_styles.css (working copy) @@ -15,7 +15,6 @@ .report-list dt { font-weight: bold; font-size: 11px; - background-image: url("moduleicon.gif"); background-repeat: no-repeat; padding: 0px 0px 2px 20px; } Index: typo3/sysext/reports/mod/index.php =================================================================== --- typo3/sysext/reports/mod/index.php (revision 6127) +++ typo3/sysext/reports/mod/index.php (working copy) @@ -215,6 +215,7 @@ * @return string list of available reports */ protected function indexAction() { + $defaultIcon = t3lib_extMgm::extRelPath('reports') . 'mod/moduleicon.gif'; $content = '
'; $reports = array(); @@ -225,7 +226,17 @@ $reportTitle = $GLOBALS['LANG']->sL($report['title']); - $reportContent = '
' . $reportTitle. '
'; + // Set default report icon + $icon = $defaultIcon; + // Check for custom icon + if (!empty($report['icon'])) { + $absIconPath = t3lib_div::getFileAbsFilename($report['icon']); + // If the file indeed exists, assemble relative path to it + if (file_exists($absIconPath)) { + $icon = $GLOBALS['BACK_PATH'] . '../' . str_replace(PATH_site, '', $absIconPath); + } + } + $reportContent = '
' . $reportTitle . '
'; $reportContent .= '
' . $GLOBALS['LANG']->sL($report['description']) . '
'; $reports[$reportTitle] = $reportContent;