[TASK] Replace sprite icon "actions-edit-upload" with IconFactory 33/42533/3
authorMarkus Guenther <mail@markus-guenther.de>
Wed, 12 Aug 2015 05:13:43 +0000 (07:13 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 12 Aug 2015 18:03:00 +0000 (20:03 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-edit-upload with the new IconFactory.

Change-Id: Ifc7afd1fdf2cdc390c1c87cd2d67c9620192b617
Resolves: #68969
Releases: master
Reviewed-on: http://review.typo3.org/42533
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/Controller/FileListController.php

index 193a88e..9abeb58 100644 (file)
@@ -170,6 +170,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'undo',
                        )
                ),
+               'actions-edit-upload' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'upload',
+                       )
+               ),
 
                // OVERLAYS
                'overlay-read-only' => array(
index 8b83546..0d3fbf2 100644 (file)
@@ -523,7 +523,7 @@ class FileListController {
                                                'target' => $this->folderObject->getCombinedIdentifier(),
                                                'returnUrl' => $this->filelist->listURL(),
                                        )
-                               )) . '" id="button-upload" title="' . $this->getLanguageService()->makeEntities($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.upload', TRUE)) . '">' . IconUtility::getSpriteIcon('actions-edit-upload') . '</a>';
+                               )) . '" id="button-upload" title="' . $this->getLanguageService()->makeEntities($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.upload', TRUE)) . '">' . $iconFactory->getIcon('actions-edit-upload', Icon::SIZE_SMALL) . '</a>';
                }
                // New folder button
                if ($this->folderObject && $this->folderObject->checkActionPermission('write')