From 7ee2b77c46c894e6b94dc813784d472b419f573b Mon Sep 17 00:00:00 2001 From: Morton Jonuschat Date: Fri, 11 Sep 2015 14:35:31 +0200 Subject: [PATCH] [FOLLOWUP][TASK] Replace sprite icon "actions-document-new" with the new IconFactory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn Reviewed-by: Frank Nägler Tested-by: Frank Nägler --- Classes/FrontendEditPanel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index ac5efa8..666db68 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -138,7 +138,9 @@ class FrontendEditPanel { . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'new', $currentRecord, ''); } else { - $icon = IconUtility::getSpriteIcon('actions-document-new', array('title' => $this->backendUser->extGetLL('p_newRecordAfter'))); + $icon = '' + . $this->iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL) + . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'new', $currentRecord, '', $newUID); } }