[TASK] Replace sprite icon "actions-document-duplicates-select" with the new IconFactory 66/42966/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Tue, 1 Sep 2015 18:42:04 +0000 (20:42 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 1 Sep 2015 19:29:42 +0000 (21:29 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-document-duplicates-select with the new IconFactory.

Resolves: #68838
Releases: master
Change-Id: I1b96c82780859ffb10fd0922dae4a3ff96bfc8bb
Reviewed-on: http://review.typo3.org/42966
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/core/Classes/Imaging/IconRegistry.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index a81e478..d7da937 100644 (file)
@@ -15,6 +15,7 @@ namespace TYPO3\CMS\Core\Imaging;
  */
 
 use TYPO3\CMS\Core\Exception;
+use TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider;
 use TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider;
 use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
 
@@ -45,6 +46,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'close',
                        )
                ),
+               'actions-actions-document-duplicates-select' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/actions/document-duplicates-select.png',
+                       )
+               ),
                'actions-document-edit-access' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
index 588967a..7274dae 100644 (file)
@@ -1041,7 +1041,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                                                if ($this->clipNumPane()) {
                                                        $theData[$fCol] .= '<a class="btn btn-default" href="' . htmlspecialchars($this->listURL('', -1) . '&duplicateField=' . $fCol)
                                                                . '" title="' . $lang->getLL('clip_duplicates', TRUE) . '">'
-                                                               . IconUtility::getSpriteIcon('actions-document-duplicates-select') . '</a>';
+                                                               . $this->iconFactory->getIcon('actions-document-duplicates-select', Icon::SIZE_SMALL) . '</a>';
                                                }
                                                // If the table can be edited, add link for editing THIS field for all
                                                // listed records: