Skip to content
Snippets Groups Projects
Commit 8998d368 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[FOLLOWUP][TASK] Use only one instance of iconFactory per class

Resolves: #70550
Releases: master
Change-Id: Ifb6f551658604c701301a5619fedb3e971ab97a2
Reviewed-on: http://review.typo3.org/43947


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: default avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
parent 41a2e4e4
Branches
Tags
No related merge requests found
......@@ -136,7 +136,9 @@ class ClearCacheToolbarItem implements ToolbarItemInterface
public function getItem()
{
$title = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:rm.clearCache_clearCache', true);
return '<span title="' . $title . '">' . $this->iconRegistry->getIcon('apps-toolbar-menu-cache', Icon::SIZE_SMALL)->render() . '</span>';
return '<span title="' . $title . '">'
. $this->iconFactory->getIcon('apps-toolbar-menu-cache', Icon::SIZE_SMALL)->render()
. '</span>';
}
/**
......
......@@ -222,7 +222,7 @@ abstract class AbstractRecordList
* @param string $colType Defines the tag being used for the columns. Default is td.
* @return string HTML content for the table row
*/
public function addElement($h, $icon, $data, $rowParams = '', $_ = '', $_ = '', $colType = 'td')
public function addElement($h, $icon, $data, $rowParams = '', $_ = '', $_2 = '', $colType = 'td')
{
$colType = ($colType === 'th') ? 'th' : 'td';
$noWrap = $this->no_noWrap ? '' : ' nowrap="nowrap"';
......
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