[TASK] Call explicit render() on icon objects
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / ViewHelpers / Be / PageInfoViewHelper.php
index 7bd038e..91a642c 100644 (file)
@@ -86,7 +86,7 @@ class PageInfoViewHelper extends AbstractBackendViewHelper implements Compilable
                        $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
                        // On root-level of page tree
                        // Make Icon
-                       $theIcon = '<span title="' . htmlspecialchars($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']) . '">' . $iconFactory->getIcon('apps-pagetree-page-domain', Icon::SIZE_SMALL) . '</span>';
+                       $theIcon = '<span title="' . htmlspecialchars($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']) . '">' . $iconFactory->getIcon('apps-pagetree-page-domain', Icon::SIZE_SMALL)->render() . '</span>';
                        if ($GLOBALS['BE_USER']->user['admin']) {
                                $theIcon = $doc->wrapClickMenuOnIcon($theIcon, 'pages', 0);
                        }