[FOLLOWUP][TASK] Replace sprite icon "actions-document-new" with the new IconFactory

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>
This commit is contained in:
Morton Jonuschat 2015-09-11 14:35:31 +02:00 committed by Frank Nägler
parent 03e3d4dd8e
commit 7ee2b77c46

View 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);
}
}