[TASK] Replace sprite icon "actions-document-synchronize" with the new IconFactory 08/43008/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 4 Sep 2015 07:07:36 +0000 (09:07 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 4 Sep 2015 10:31:51 +0000 (12:31 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-document-synchronize with the new IconFactory.

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

index c31d7d3..ffaba99 100644 (file)
@@ -445,7 +445,7 @@ class InlineControlContainer extends AbstractContainer {
                                }
                                break;
                        case 'localize':
-                               $title = $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localizeAllRecords', 1);
+                               $title = $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localizeAllRecords', TRUE);
                                $icon = 'actions-document-localize';
                                $className = 'typo3-localizationLink';
                                $attributes['class'] = 'btn btn-default';
@@ -464,9 +464,9 @@ class InlineControlContainer extends AbstractContainer {
                                $className = '';
                }
                // Create the link:
-               $icon = $icon ? IconUtility::getSpriteIcon($icon, array('title' => htmlspecialchars($title))) : '';
+               $icon = $icon ? $this->iconFactory->getIcon($icon) : '';
                $link = $this->wrapWithAnchor($icon . $title, '#', $attributes);
-               return '<div' . ($className ? ' class="' . $className . '"' : '') . '>' . $link . '</div>';
+               return '<div' . ($className ? ' class="' . $className . '"' : '') . 'title="' . $title . '">' . $link . '</div>';
        }
 
        /**
index bfdc4a1..a080ad9 100644 (file)
@@ -142,6 +142,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'source' => 'EXT:t3skin/images/icons/actions/document-save-close.png'
                        )
                ),
+               'actions-document-synchronize' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/actions/document-synchronize.png'
+                       )
+               ),
                'actions-document-view' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(