From f13d0f118e46e21162c60901bedd82bc90b0e7af Mon Sep 17 00:00:00 2001 From: Michael Oehlhof Date: Sun, 6 Sep 2015 02:33:25 +0200 Subject: [PATCH] [TASK] Replaced icon with IconFactory in SystemInformationToolbarItem MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Resolves: #69558 Releases: master Change-Id: I587133662b69aafaf7531c386b16446bd6691ae8 Reviewed-on: http://review.typo3.org/43064 Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters Reviewed-by: Frank Nägler Tested-by: Frank Nägler --- .../Backend/ToolbarItems/SystemInformationToolbarItem.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php b/typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php index c5a8d06e3334..0eb36f127ebb 100644 --- a/typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php +++ b/typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php @@ -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)) - . ''; + $icon = $iconFactory->getIcon('actions-system-list-open', Icon::SIZE_SMALL); + return '' . $icon . ''; } /** -- 2.20.1