[TASK] Replace icon by IconFactory: actions-reference-file 34/43234/2
authorJan Helke <typo3@helke.de>
Sat, 12 Sep 2015 11:26:10 +0000 (13:26 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 12 Sep 2015 14:07:00 +0000 (16:07 +0200)
As the icon was missing even before this patch and the function is
only be called in the case of an import from TYPO3 4.5 I took the
liberty to just replace it with the reference-hard icon, to which
it is connected.

Releases: master
Resolves: #68973
Change-Id: I8144379444492aab28c5ae7ec19408c26bb949a3
Reviewed-on: http://review.typo3.org/43234
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/impexp/Classes/ImportExport.php

index 9eb9050..88157bb 100644 (file)
@@ -3635,7 +3635,7 @@ class ImportExport {
                                                $pInfo['updateMode'] = $this->renderSelectBox('tx_impexp[import_mode][' . $table . ':' . $uid . ']', $this->import_mode[$table . ':' . $uid], $optValues);
                                        }
                                }
-                               // Diff vieiw:
+                               // Diff view:
                                if ($this->showDiff) {
                                        // For IMPORTS, get new id:
                                        if ($newUid = $this->import_mapId[$table][$uid]) {
@@ -3858,7 +3858,7 @@ class ImportExport {
                                        $this->error('MISSING RTE original FILE: ' . $ID, 1);
                                }
                                $pInfo['showDiffContent'] = PathUtility::stripPathSitePrefix($this->fileIDMap[$ID]);
-                               $pInfo['preCode'] = $preCode . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-reference-file');
+                               $pInfo['preCode'] = $preCode . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $iconFactory->getIcon('status-status-reference-hard', Icon::SIZE_SMALL);
                                $pInfo['title'] = htmlspecialchars($fI['filename']) . ' <em>(Original)</em>';
                                $pInfo['ref'] = 'FILE';
                                $pInfo['size'] = $fI['filesize'];