[TASK] Replace icon by IconFactory: apps-toolbar-menu-workspace
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / PageTreeNavigationController.php
index 43ab7e3..089e9b2 100644 (file)
@@ -250,13 +250,10 @@ class PageTreeNavigationController {
        protected function getWorkspaceInfo() {
                if (ExtensionManagementUtility::isLoaded('workspaces') && ($this->getBackendUser()->workspace !== 0 || $this->getBackendUser()->getTSConfigVal('options.pageTree.onlineWorkspaceInfo'))) {
                        $wsTitle = htmlspecialchars(WorkspaceService::getWorkspaceTitle($this->getBackendUser()->workspace));
        protected function getWorkspaceInfo() {
                if (ExtensionManagementUtility::isLoaded('workspaces') && ($this->getBackendUser()->workspace !== 0 || $this->getBackendUser()->getTSConfigVal('options.pageTree.onlineWorkspaceInfo'))) {
                        $wsTitle = htmlspecialchars(WorkspaceService::getWorkspaceTitle($this->getBackendUser()->workspace));
-                       $workspaceInfo = '
-                               <div class="bgColor4 workspace-info">' . IconUtility::getSpriteIcon('apps-toolbar-menu-workspace', array(
-                               'title' => $wsTitle,
-                               'onclick' => 'top.goToModule(\'web_WorkspacesWorkspaces\');',
-                               'style' => 'cursor:pointer;'
-                       )) . $wsTitle . '</div>
-                       ';
+
+                       $workspaceInfo = '<div class="bgColor4 workspace-info"><span title="' . $wsTitle . '" onclick="top.goToModule(\'web_WorkspacesWorkspaces\');" style="cursor:pointer;">'
+                                       . $this->iconFactory->getIcon('apps-toolbar-menu-workspace', Icon::SIZE_SMALL)->render() . '</span>'
+                                       . $wsTitle . '</div>';
                } else {
                        $workspaceInfo = '';
                }
                } else {
                        $workspaceInfo = '';
                }