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

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

Replaces all IconUtility::getSpriteIcon calls for the icon
actions-document-duplicates-select with the new IconFactory.

Resolves: #68838
Releases: master
Change-Id: I1b96c82780859ffb10fd0922dae4a3ff96bfc8bb
Reviewed-on: http://review.typo3.org/42966


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 8f93108e
......@@ -15,6 +15,7 @@ namespace TYPO3\CMS\Core\Imaging;
*/
use TYPO3\CMS\Core\Exception;
use TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider;
use TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
......@@ -45,6 +46,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
'name' => 'close',
)
),
'actions-actions-document-duplicates-select' => array(
'provider' => BitmapIconProvider::class,
'options' => array(
'source' => 'EXT:t3skin/images/icons/actions/document-duplicates-select.png',
)
),
'actions-document-edit-access' => array(
'provider' => FontawesomeIconProvider::class,
'options' => array(
......
......@@ -1041,7 +1041,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
if ($this->clipNumPane()) {
$theData[$fCol] .= '<a class="btn btn-default" href="' . htmlspecialchars($this->listURL('', -1) . '&duplicateField=' . $fCol)
. '" title="' . $lang->getLL('clip_duplicates', TRUE) . '">'
. IconUtility::getSpriteIcon('actions-document-duplicates-select') . '</a>';
. $this->iconFactory->getIcon('actions-document-duplicates-select', Icon::SIZE_SMALL) . '</a>';
}
// If the table can be edited, add link for editing THIS field for all
// listed records:
......
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