[TASK] Add new icon for ext:reports 18/23818/3
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 13 Sep 2013 17:22:14 +0000 (19:22 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 13 Sep 2013 19:05:54 +0000 (21:05 +0200)
Add a new icon for ext:reports-module and adjust the
IconViewHelper. Removes 2 old icons.

Change-Id: Iff731cc27ad8e6323aea8c6c01c036f3a776b3e2
Related: #41631
Resolves: #51993
Releases: 6.2
Reviewed-on: https://review.typo3.org/23818
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/reports/Classes/ViewHelpers/IconViewHelper.php
typo3/sysext/reports/Resources/Public/Icons/Backend-Module.gif [deleted file]
typo3/sysext/reports/ext_icon.gif [deleted file]
typo3/sysext/reports/ext_icon.png [new file with mode: 0644]
typo3/sysext/reports/ext_tables.php

index 7ee904b..e903115 100644 (file)
@@ -43,7 +43,7 @@ class IconViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendView
                                $icon = $GLOBALS['BACK_PATH'] . '../' . str_replace(PATH_site, '', $absIconPath);
                        }
                } else {
-                       $icon = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('reports') . 'Resources/Public/Icons/Backend-Module.gif';
+                       $icon = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('reports') . 'ext_icon.png';
                }
                $content = '<img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], $icon, 'width="16" height="16"') . ' title="' . htmlspecialchars($title) . '" alt="' . htmlspecialchars($title) . '" />';
                return $content;
diff --git a/typo3/sysext/reports/Resources/Public/Icons/Backend-Module.gif b/typo3/sysext/reports/Resources/Public/Icons/Backend-Module.gif
deleted file mode 100644 (file)
index c95d5f8..0000000
Binary files a/typo3/sysext/reports/Resources/Public/Icons/Backend-Module.gif and /dev/null differ
diff --git a/typo3/sysext/reports/ext_icon.gif b/typo3/sysext/reports/ext_icon.gif
deleted file mode 100644 (file)
index c95d5f8..0000000
Binary files a/typo3/sysext/reports/ext_icon.gif and /dev/null differ
diff --git a/typo3/sysext/reports/ext_icon.png b/typo3/sysext/reports/ext_icon.png
new file mode 100644 (file)
index 0000000..25990e6
Binary files /dev/null and b/typo3/sysext/reports/ext_icon.png differ
index d30290d..ed83aa1 100644 (file)
@@ -12,7 +12,7 @@ if (TYPO3_MODE === 'BE') {
                        'Report' => 'index,detail'
                ), array(
                        'access' => 'admin',
-                       'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/Backend-Module.gif',
+                       'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.png',
                        'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf'
                )
        );