[TASK] Replace sprite icon "actions-document-localize" with the new IconFactory 68/42968/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Tue, 1 Sep 2015 18:49:58 +0000 (20:49 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 1 Sep 2015 19:31:38 +0000 (21:31 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-document-localize with the new IconFactory.

Resolves: #68820
Releases: master
Change-Id: I888655fdf18c444d33ec52d68d84dcffa0c46aff
Reviewed-on: http://review.typo3.org/42968
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index ff4b01b..18b612d 100644 (file)
@@ -591,8 +591,8 @@ class InlineRecordContainer extends AbstractContainer {
                        if ($enabledControls['localize'] && isset($rec['__create'])) {
                                $onClick = 'inline.synchronizeLocalizeRecords(' . GeneralUtility::quoteJSvalue($nameObjectFt) . ', ' . GeneralUtility::quoteJSvalue($rec['uid']) . ');';
                                $cells['localize'] = '
-                                       <a class="btn btn-default" href="#" onclick="' . htmlspecialchars($onClick) . '">
-                                               ' . IconUtility::getSpriteIcon('actions-document-localize', array('title' => $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize', TRUE))) . '
+                                       <a class="btn btn-default" href="#" onclick="' . htmlspecialchars($onClick) . 'title="' . $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize', TRUE) . '">
+                                               ' . $this->iconFactory->getIcon('actions-document-localize', Icon::SIZE_SMALL) . '
                                        </a>';
                        }
                }
index 7fa8b3b..87c17fe 100644 (file)
@@ -82,6 +82,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'upload',
                        )
                ),
+               'actions-document-localize' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/actions/document-localize.png',
+                       )
+               ),
                'actions-document-move' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(