Skip to content
Snippets Groups Projects
Commit f13d0f11 authored by Michael Oehlhof's avatar Michael Oehlhof Committed by Frank Nägler
Browse files

[TASK] Replaced icon with IconFactory in SystemInformationToolbarItem

Resolves: #69558
Releases: master
Change-Id: I587133662b69aafaf7531c386b16446bd6691ae8
Reviewed-on: http://review.typo3.org/43064


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Nägler <frank.naegler@typo3.org>
parent b705a7ef
Branches
Tags
No related merge requests found
......@@ -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>';
}
/**
......
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