[TASK] Replace icon by IconFactory: apps-toolbar-menu-workspace 12/43212/2
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 11 Sep 2015 17:51:50 +0000 (19:51 +0200)
committerNicole Cordes <typo3@cordes.co>
Sat, 12 Sep 2015 10:34:33 +0000 (12:34 +0200)
Resolves: #69684
Releases: master
Change-Id: I25315d85215109171dda0ed8f4e5e712482f9632
Reviewed-on: http://review.typo3.org/43212
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
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));
-                       $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 = '';
                }