Commit 81ad545e authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Wouter Wolters
Browse files

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

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

Resolves: #68974
Releases: master
Change-Id: Ic85e7aebf46010859a9ef60b329cc40a353909f5
Reviewed-on: http://review.typo3.org/42961

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 4925eba6
......@@ -210,6 +210,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
'source' => 'EXT:t3skin/images/icons/actions/insert-record.png',
)
),
'actions-insert-reference' => array(
'provider' => BitmapIconProvider::class,
'options' => array(
'source' => 'EXT:t3skin/images/icons/actions/insert-reference.png',
)
),
'actions-markstate' => array(
'provider' => FontawesomeIconProvider::class,
'options' => array(
......
......@@ -17,6 +17,8 @@ namespace TYPO3\CMS\Impexp;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Core\Exception;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Utility\File\ExtendedFileUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......@@ -3786,6 +3788,9 @@ class ImportExport {
* @see singleRecordLines()
*/
public function addFiles($rels, &$lines, $preCode, $htmlColorClass = '', $tokenID = '') {
/** @var IconFactory $iconFactory */
$iconFactory = GeneralUtility::makeInstance(IconFactory::class);
foreach ($rels as $ID) {
// Process file:
$pInfo = array();
......@@ -3870,7 +3875,7 @@ class ImportExport {
$pInfo['updatePath'] = $fI['parentRelFileName'];
}
$pInfo['showDiffContent'] = PathUtility::stripPathSitePrefix($this->fileIDMap[$extID]);
$pInfo['preCode'] = $preCode . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-insert-reference');
$pInfo['preCode'] = $preCode . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $iconFactory->getIcon('actions-insert-reference', Icon::SIZE_SMALL);
$pInfo['title'] = htmlspecialchars($fI['filename']) . ' <em>(Resource)</em>';
$pInfo['ref'] = 'FILE';
$pInfo['size'] = $fI['filesize'];
......
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