Commit 6030707a authored by Wouter Wolters's avatar Wouter Wolters Committed by Georg Ringer
Browse files

[TASK] Drop skinImg in ext:reports

Resolves: #68195
Releases: master
Change-Id: I425737e83bada6c5634b75fc7042c9be1a28f3fd
Reviewed-on: http://review.typo3.org/41382


Reviewed-by: default avatarDavid Greiner <hallo@davidgreiner.de>
Tested-by: default avatarDavid Greiner <hallo@davidgreiner.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent a16478e2
......@@ -57,12 +57,12 @@ class IconViewHelper extends AbstractBackendViewHelper implements CompilableInte
if (!empty($icon)) {
$absIconPath = \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFilename($icon);
if (file_exists($absIconPath)) {
$icon = $GLOBALS['BACK_PATH'] . '../' . str_replace(PATH_site, '', $absIconPath);
$icon = '../' . str_replace(PATH_site, '', $absIconPath);
}
} else {
$icon = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('reports') . 'ext_icon.png';
}
return '<img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], $icon, 'width="16" height="16"') . ' title="' . htmlspecialchars($title) . '" alt="' . htmlspecialchars($title) . '" />';
return '<img src="' . htmlspecialchars($icon) . '" width="16" height="16" title="' . htmlspecialchars($title) . '" alt="' . htmlspecialchars($title) . '" />';
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment