[FOLLOWUP][TASK] Use only one instance of iconFactory per class 47/43947/5
authorAndreas Fernandez <typo3@scripting-base.de>
Fri, 9 Oct 2015 17:20:06 +0000 (19:20 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 9 Oct 2015 17:33:23 +0000 (19:33 +0200)
Resolves: #70550
Releases: master
Change-Id: Ifb6f551658604c701301a5619fedb3e971ab97a2
Reviewed-on: http://review.typo3.org/43947
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php
typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php

index 31e653a..66d9752 100644 (file)
@@ -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>';
     }
 
     /**
index c7c60f0..16394e4 100644 (file)
@@ -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"';