[TASK] Replace sprite icon "apps-filetree-root" with the new IconFactory
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / File / EditFileController.php
index 6321bf2..497e542 100644 (file)
@@ -15,7 +15,6 @@ namespace TYPO3\CMS\Backend\Controller\File;
  */
 
 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\Utility\GeneralUtility;
@@ -114,7 +113,9 @@ class EditFileController implements \TYPO3\CMS\Core\Http\ControllerInterface {
                }
 
                // Setting the title and the icon
-               $icon = IconUtility::getSpriteIcon('apps-filetree-root');
+               /** @var IconFactory $iconFactory */
+               $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
+               $icon = $iconFactory->getIcon('apps-filetree-root', Icon::SIZE_SMALL);
                $this->title = $icon . htmlspecialchars($this->fileObject->getStorage()->getName()) . ': ' . htmlspecialchars($this->fileObject->getIdentifier());
 
                // Setting template object