[TASK] Call explicit render() on icon objects
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / ClickMenu / ClickMenu.php
index 339c194..cec5365 100644 (file)
@@ -912,7 +912,7 @@ class ClickMenu {
                        $identifier = $fileObject->getCombinedIdentifier();
                        if ($fileObject instanceof Folder) {
                                $icon = '<span title="' . htmlspecialchars($fileObject->getName()) . '" class="absmiddle">'
-                                       . $this->iconFactory->getIconForResource($fileObject, Icon::SIZE_SMALL)
+                                       . $this->iconFactory->getIconForResource($fileObject, Icon::SIZE_SMALL)->render()
                                        . '</span>';
                                $folder = TRUE;
                                if ($fileObject->getIdentifier() === $fileObject->getStorage()->getRootLevelFolder()->getIdentifier()) {
@@ -930,7 +930,7 @@ class ClickMenu {
                        } else {
                                $title = $fileObject->getName() . ' (' . GeneralUtility::formatSize($fileObject->getSize()) . ')';
                                $icon = '<span class="absmiddle" title="' . htmlspecialchars($title). '">'
-                                       . $this->iconFactory->getIconForResource($fileObject, Icon::SIZE_SMALL)
+                                       . $this->iconFactory->getIconForResource($fileObject, Icon::SIZE_SMALL)->render()
                                        .'</span>';
                        }
                        // Hide