[TASK] Replace sprite icon "actions-edit-rename" with IconFactory 01/42501/4
authorMarkus Guenther <mail@markus-guenther.de>
Tue, 11 Aug 2015 08:52:39 +0000 (10:52 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 12 Aug 2015 18:07:28 +0000 (20:07 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-edit-rename with the new IconFactory.

Change-Id: I012d9abbcc794ace2aff578cdec40bd63ce4b58f
Resolves: #68933
Releases: master
Reviewed-on: http://review.typo3.org/42501
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/filelist/Classes/FileList.php

index 9abeb58..f166847 100644 (file)
@@ -158,6 +158,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'calendar',
                        )
                ),
+               'actions-edit-rename' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'quote-right',
+                       )
+               ),
                'actions-edit-replace' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
index b5facbd..477da1d 100644 (file)
@@ -918,7 +918,7 @@ class FileList extends AbstractRecordList {
                if ($fileOrFolderObject->checkActionPermission('rename')) {
                        $url = BackendUtility::getModuleUrl('file_rename', array('target' => $fullIdentifier));
                        $renameOnClick = 'top.content.list_frame.location.href = ' . GeneralUtility::quoteJSvalue($url) . '+\'&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search);return false;';
-                       $cells['rename'] = '<a href="#" class="btn btn-default" onclick="' . htmlspecialchars($renameOnClick) . '"  title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.rename') . '">' . IconUtility::getSpriteIcon('actions-edit-rename') . '</a>';
+                       $cells['rename'] = '<a href="#" class="btn btn-default" onclick="' . htmlspecialchars($renameOnClick) . '"  title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.rename') . '">' . $this->iconFactory->getIcon('actions-edit-rename', Icon::SIZE_SMALL) . '</a>';
                } else {
                        $cells['rename'] = $this->spaceIcon;
                }