[TASK] Replace sprite icon "actions-edit-localize-status-high" with IconFactory 07/43007/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 4 Sep 2015 06:57:10 +0000 (08:57 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 4 Sep 2015 10:36:48 +0000 (12:36 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-edit-localize-status-high with the new IconFactory.

Resolves: #68928
Releases: master
Change-Id: Id0f4db30b9ef5a623e27f929e62b944841197e4a
Reviewed-on: http://review.typo3.org/43007
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index 5c49010..80c2672 100644 (file)
@@ -479,7 +479,9 @@ class InlineRecordContainer extends AbstractContainer {
                                . $this->iconFactory->getIcon('actions-edit-localize-status-low', Icon::SIZE_SMALL)
                                . '</span>';
                } elseif (isset($rec['__remove'])) {
-                       $cells['localize.wasRemovedInOriginal'] = IconUtility::getSpriteIcon('actions-edit-localize-status-high', array('title' => $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize.wasRemovedInOriginal', TRUE)));
+                       $cells['localize.wasRemovedInOriginal'] = '<span title="' . $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize.wasRemovedInOriginal', TRUE) . '">'
+                               . $this->iconFactory->getIcon('actions-edit-localize-status-high', Icon::SIZE_SMALL)
+                               . '</span>';
                }
                // "Info": (All records)
                if ($enabledControls['info'] && !$isNewItem) {
index a080ad9..44bf196 100644 (file)
@@ -196,6 +196,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'source' => 'EXT:t3skin/images/icons/actions/edit-localize-status-low.png',
                        )
                ),
+               'actions-edit-localize-status-high' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/actions/edit-localize-status-high.png',
+                       )
+               ),
                'actions-edit-merge-localization' => array(
                        'provider' => BitmapIconProvider::class,
                        'options' => array(