Commit 9a24ae3c authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Wouter Wolters
Browse files

[TASK] Replace sprite icon "actions-insert-record" with the new IconFactory

Replaces all IconUtility::getSpriteIcon calls for the icon
actions-insert-record with the new IconFactory.

Resolves: #68972
Releases: master
Change-Id: Ic4d4657f96e712e0169da866189b6bf8b6fd82d5
Reviewed-on: http://review.typo3.org/42964

Reviewed-by: default avatarDaniel Goerz <ervaude@gmail.com>
Tested-by: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent ecf3276f
......@@ -556,8 +556,8 @@ class InlineControlContainer extends AbstractContainer {
$item = '
<a href="#" class="btn btn-default inlineNewRelationButton ' . $this->inlineData['config'][$nameObject]['md5'] . '"
' . $buttonStyle . ' onclick="' . htmlspecialchars($onClick) . '">
' . IconUtility::getSpriteIcon('actions-insert-record', array('title' => $createNewRelationText)) . '
' . $buttonStyle . ' onclick="' . htmlspecialchars($onClick) . '" title="' . $createNewRelationText . '">
' . $this->iconFactory->getIcon('actions-insert-record', Icon::SIZE_SMALL) . '
' . $createNewRelationText . '
</a>';
......
......@@ -580,7 +580,7 @@ abstract class AbstractFormElement extends AbstractNode {
onclick="' . htmlspecialchars($aOnClick) . '"
class="btn btn-default"
title="' . htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_core.xlf:labels.browse_' . ($mode == 'db' ? 'db' : 'file'))) . '">
' . IconUtility::getSpriteIcon('actions-insert-record') . '
' . $this->iconFactory->getIcon('actions-insert-record', Icon::SIZE_SMALL) . '
</a>';
}
if (!$params['dontShowMoveIcons']) {
......
......@@ -192,6 +192,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
'name' => 'upload',
)
),
'actions-insert-record' => array(
'provider' => BitmapIconProvider::class,
'options' => array(
'source' => 'EXT:t3skin/images/icons/actions/insert-record.png',
)
),
'actions-markstate' => array(
'provider' => FontawesomeIconProvider::class,
'options' => array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment