[TASK] Replace sprite icon "status-status-reference-hard" with new IconFactory 27/43227/2
authorMathias Brodala <mbrodala@pagemachine.de>
Sat, 12 Sep 2015 08:20:02 +0000 (10:20 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Sat, 12 Sep 2015 10:14:23 +0000 (12:14 +0200)
Replaces all IconUtility::getSpriteIcon calls for the the icon
"status-status-reference-hard" with the new IconFactory.

Resolves: #69694
Releases: master
Change-Id: I260fe143d7904c74cdd3778b2e4bb9873c5a0dec
Reviewed-on: http://review.typo3.org/43227
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/impexp/Classes/ImportExport.php

index 712a4f2..c34371d 100644 (file)
@@ -702,6 +702,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'lock',
                        )
                ),
+               'status-status-reference-hard' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/status/status-reference-hard.png',
+                       )
+               ),
                'status-status-sorting-asc' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
index 31e6af5..790777c 100644 (file)
@@ -3804,7 +3804,7 @@ class ImportExport {
                                        return;
                                }
                        }
-                       $pInfo['preCode'] = $preCode . '&nbsp;&nbsp;&nbsp;&nbsp;' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('status-status-reference-hard');
+                       $pInfo['preCode'] = $preCode . '&nbsp;&nbsp;&nbsp;&nbsp;' . $iconFactory->getIcon('status-status-reference-hard', Icon::SIZE_SMALL);
                        $pInfo['title'] = htmlspecialchars($fI['filename']);
                        $pInfo['ref'] = 'FILE';
                        $pInfo['size'] = $fI['filesize'];