[TASK] Replace sprite icon "actions-edit-download" with IconFactory 69/42469/3
authorMarkus Guenther <mail@markus-guenther.de>
Mon, 10 Aug 2015 18:22:28 +0000 (20:22 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 10 Aug 2015 18:51:02 +0000 (20:51 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-edit-download with the new IconFactory.

Change-Id: Iae0d2751ec22cd52f8fa48f003ea2028eebfe974
Resolves: #68894
Releases: master
Reviewed-on: http://review.typo3.org/42469
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index 9b68745..45ac5b5 100644 (file)
@@ -308,7 +308,7 @@ class ElementInformationController {
                        if ($url) {
                                $downloadLink .= '
                                        <a class="btn btn-primary" href="' . htmlspecialchars($url) . '" target="_blank">
-                                               ' . IconUtility::getSpriteIcon('actions-edit-download') . '
+                                               ' . $this->iconFactory->getIcon('actions-edit-download', Icon::SIZE_SMALL) . '
                                                ' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:download', TRUE) . '
                                        </a>';
                        }
index a72e9f0..bd3ad59 100644 (file)
@@ -140,6 +140,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'scissors text-danger',
                        )
                ),
+               'actions-edit-download' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'download',
+                       )
+               ),
 
                // OVERLAYS
                'overlay-read-only' => array(