[TASK] Replaced icon with IconFactory in SystemInformationToolbarItem 64/43064/2
authorMichael Oehlhof <typo3@oehlhof.de>
Sun, 6 Sep 2015 00:33:25 +0000 (02:33 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Mon, 7 Sep 2015 09:24:42 +0000 (11:24 +0200)
Resolves: #69558
Releases: master
Change-Id: I587133662b69aafaf7531c386b16446bd6691ae8
Reviewed-on: http://review.typo3.org/43064
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php

index c5a8d06..0eb36f1 100644 (file)
@@ -17,7 +17,8 @@ namespace TYPO3\CMS\Backend\Backend\ToolbarItems;
 use TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface;
 use TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus;
 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\Http\AjaxRequestHandler;
 use \TYPO3\CMS\Core\Page\PageRenderer;
 use TYPO3\CMS\Core\Utility\CommandUtility;
@@ -275,9 +276,10 @@ class SystemInformationToolbarItem implements ToolbarItemInterface {
         * @return string Icon HTML
         */
        public function getItem() {
+               $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
                $title = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo', TRUE);
-               return IconUtility::getSpriteIcon('actions-system-list-open', array('title' => $title))
-                               . '<span id="t3js-systeminformation-counter" class="badge"></span>';
+               $icon = $iconFactory->getIcon('actions-system-list-open', Icon::SIZE_SMALL);
+               return '<span title="' . $title . '">' . $icon . '<span id="t3js-systeminformation-counter" class="badge"></span></span>';
        }
 
        /**