[TASK] Replace sprite icon "actions-document-history-open" with the new IconFactory
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / ContentElement / ElementInformationController.php
index e33e0bc..c5ff32a 100644 (file)
@@ -16,6 +16,8 @@ namespace TYPO3\CMS\Backend\Controller\ContentElement;
 
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Backend\Utility\IconUtility;
+use TYPO3\CMS\Core\Imaging\Icon;
+use TYPO3\CMS\Core\Imaging\IconFactory;
 use TYPO3\CMS\Core\Resource\Folder;
 use TYPO3\CMS\Core\Resource\ProcessedFile;
 use TYPO3\CMS\Core\Resource\ResourceFactory;
@@ -102,10 +104,16 @@ class ElementInformationController {
         */
        protected $titleTag;
 
+       /**
+        * @var IconFactory
+        */
+       protected $iconFactory;
+
        /**
         * Constructor
         */
        public function __construct() {
+               $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
                $GLOBALS['SOBE'] = $this;
 
                $this->init();
@@ -570,7 +578,7 @@ class ElementInformationController {
                        ) . '; return false;';
                $pageActionIcons .= '
                        <a class="btn btn-default btn-sm" href="#" onclick="' . htmlspecialchars($historyOnClick) . '">
-                               ' . IconUtility::getSpriteIcon('actions-document-history-open') . '
+                               ' . $this->iconFactory->getIcon('actions-document-history-open', Icon::SIZE_SMALL) . '
                        </a>';
 
                if ($table === 'pages') {