[FOLLOWUP][TASK] Replace sprite icon "actions-document-new" with the new IconFactory 93/43193/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 11 Sep 2015 12:35:31 +0000 (14:35 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 11 Sep 2015 14:40:52 +0000 (16:40 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-document-new with the new IconFactory.

Resolves: #68806
Releases: master
Change-Id: Idf7ea308b316101a77c099cdba0fe7d4e8a3ee2a
Reviewed-on: http://review.typo3.org/43193
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/feedit/Classes/FrontendEditPanel.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index ac5efa8..666db68 100644 (file)
@@ -138,7 +138,9 @@ class FrontendEditPanel {
                                        . '</span>';
                                $panel .= $this->editPanelLinkWrap($icon, $formName, 'new', $currentRecord, '');
                        } else {
-                               $icon = IconUtility::getSpriteIcon('actions-document-new', array('title' => $this->backendUser->extGetLL('p_newRecordAfter')));
+                               $icon = '<span title="' . htmlspecialchars($this->backendUser->extGetLL('p_newRecordAfter')) . '">'
+                                       . $this->iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)
+                                       . '</span>';
                                $panel .= $this->editPanelLinkWrap($icon, $formName, 'new', $currentRecord, '', $newUID);
                        }
                }
index e723683..1cd93e7 100644 (file)
@@ -978,7 +978,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                                                if ($this->calcPerms & $permsAdditional && $this->showNewRecLink($table)) {
                                                        $spriteIcon = $table === 'pages'
                                                                ? $this->iconFactory->getIcon('actions-page-new', Icon::SIZE_SMALL)
-                                                               : IconUtility::getSpriteIcon('actions-document-new');
+                                                               : $this->iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL);
                                                        if ($table === 'tt_content' && $this->newWizards) {
                                                                // If mod.web_list.newContentWiz.overrideWithExtension is set, use that extension's create new content wizard instead:
                                                                $tmpTSc = BackendUtility::getModTSconfig($this->pageinfo['uid'], 'mod.web_list');