From 03e3d4dd8e7a1386dca939944c3c8a3675c00cc7 Mon Sep 17 00:00:00 2001 From: Morton Jonuschat Date: Fri, 11 Sep 2015 14:54:55 +0200 Subject: [PATCH] [FOLLOWUP][TASK] Replace sprite icon "actions-edit-delete" 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-edit-delete with the new IconFactory. Resolves: #69670 Releases: master Change-Id: I719f8d78c0c9c5623f793e9d469f5595cc54127d Reviewed-on: http://review.typo3.org/43195 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 5899d77..ac5efa8 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -145,7 +145,9 @@ class FrontendEditPanel { // Hiding in workspaces because implementation is incomplete // Hiding for localizations because it is unknown what should be the function in that case if (isset($allow['delete']) && $this->backendUser->workspace === 0 && !$dataArr['_LOCALIZED_UID']) { - $icon = IconUtility::getSpriteIcon('actions-edit-delete', array('title' => $this->backendUser->extGetLL('p_delete'))); + $icon = '' + . $this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL) + . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'delete', '', $this->backendUser->extGetLL('p_deleteConfirm')); } // Final