[TASK] Call explicit render() on icon objects
[Packages/TYPO3.CMS.git] / typo3 / sysext / filelist / Classes / Controller / FileListController.php
index fe01fec..896ff97 100644 (file)
@@ -501,7 +501,7 @@ class FileListController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControl
                                                'target' => $this->folderObject->getCombinedIdentifier(),
                                                'returnUrl' => $this->filelist->listURL(),
                                        )
-                               )) . '" id="button-upload" title="' . $this->getLanguageService()->makeEntities($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.upload', TRUE)) . '">' . $iconFactory->getIcon('actions-edit-upload', Icon::SIZE_SMALL) . '</a>';
+                               )) . '" id="button-upload" title="' . $this->getLanguageService()->makeEntities($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.upload', TRUE)) . '">' . $iconFactory->getIcon('actions-edit-upload', Icon::SIZE_SMALL)->render() . '</a>';
                }
                // New folder button
                if ($this->folderObject && $this->folderObject->checkActionPermission('write')
@@ -514,7 +514,7 @@ class FileListController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControl
                                                'target' => $this->folderObject->getCombinedIdentifier(),
                                                'returnUrl' => $this->filelist->listURL(),
                                        )
-                               )) . '" title="' . $this->getLanguageService()->makeEntities($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.new', TRUE)) . '">' . $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL) . '</a>';
+                               )) . '" title="' . $this->getLanguageService()->makeEntities($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.new', TRUE)) . '">' . $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render() . '</a>';
                }
                return $buttons;
        }