[TASK] Replace sprite icon "actions-document-edit-access" with the new IconFactory 69/42369/2
authorMarkus Guenther <mail@markus-guenther.de>
Fri, 7 Aug 2015 12:02:55 +0000 (14:02 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 7 Aug 2015 12:10:11 +0000 (14:10 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-document-edit-access with the new IconFactory.

Change-Id: I5e2b086078f0a60413b9d289d0fa849fd8cc65d2
Resolves: #68836
Releases: master
Reviewed-on: http://review.typo3.org/42369
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/core/ext_tables.php

index 82e1f5f..1ba64fd 100644 (file)
@@ -666,7 +666,7 @@ class ClickMenu {
                        'columnsOnly' => rawurlencode((implode(',', $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']) . ($table === 'pages' ? ',extendToSubpages' : ''))),
                        'edit[' . $table . '][' . $uid . ']' => 'edit'
                ));
-               return $this->linkItem($this->languageService->makeEntities($this->languageService->getLL('CM_editAccess')), IconUtility::getSpriteIcon('actions-document-edit-access'), $this->urlRefForCM($url, 'returnUrl'), 1);
+               return $this->linkItem($this->languageService->makeEntities($this->languageService->getLL('CM_editAccess')), $this->iconFactory->getIcon('actions-document-edit-access', Icon::SIZE_SMALL), $this->urlRefForCM($url, 'returnUrl'), 1);
        }
 
        /**
@@ -1481,4 +1481,4 @@ class ClickMenu {
                return $str . '.location';
        }
 
-}
\ No newline at end of file
+}
index 9d48ffc..a8d462a 100644 (file)
@@ -44,10 +44,10 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'times',
                        )
                ),
-               'actions-document-export-csv' => array(
+               'actions-document-edit-access' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
-                               'name' => 'download',
+                               'name' => 'clock-o',
                        )
                ),
                'actions-document-export-t3d' => array(
index e6e18cd..d65f368 100644 (file)
@@ -180,7 +180,7 @@ $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
        'actions-document-close',
        'actions-document-duplicates-select',
        'actions-document-edit-access',
-       'actions-document-export-csv',
+       'actions-document-export-csv', // Not used in core!
        'actions-document-export-t3d',
        'actions-document-history-open',
        'actions-document-import-t3d',