[TASK] Replace icon by IconFactory: mimetypes-text-csv 23/43223/2
authorMichael Oehlhof <typo3@oehlhof.de>
Fri, 11 Sep 2015 23:06:40 +0000 (01:06 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 12 Sep 2015 10:14:20 +0000 (12:14 +0200)
Resolves: #69687
Releases: master
Change-Id: Ie5f2141fc6235944a5d20789cde2d6b0e08f8c15
Reviewed-on: http://review.typo3.org/43223
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
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 048e8a8..712a4f2 100644 (file)
@@ -776,6 +776,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'file-text-o',
                        )
                ),
+               'mimetypes-text-csv' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/mimetypes/text-csv.png',
+                       )
+               ),
                'mimetypes-word' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
index 1c90dbe..66fdcad 100644 (file)
@@ -298,7 +298,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                                // CSV
                                $buttons['csv'] = '<a href="' . htmlspecialchars(($this->listURL() . '&csv=1')) . '" title="'
                                        . $lang->sL('LLL:EXT:lang/locallang_core.xlf:labels.csv', TRUE) . '">'
-                                       . IconUtility::getSpriteIcon('mimetypes-text-csv') . '</a>';
+                                       . $this->iconFactory->getIcon('mimetypes-text-csv', Icon::SIZE_SMALL) . '</a>';
                                // Export
                                if (ExtensionManagementUtility::isLoaded('impexp')) {
                                        $url = BackendUtility::getModuleUrl('xMOD_tximpexp', array('tx_impexp[action]' => 'export'));