Bug #11152 Calls about this-> in static context in worksapces lib
authornxpthx <nxpthx@743128fe-103e-dd11-99c4-001b210b3e58>
Tue, 30 Nov 2010 08:22:51 +0000 (08:22 +0000)
committernxpthx <nxpthx@743128fe-103e-dd11-99c4-001b210b3e58>
Tue, 30 Nov 2010 08:22:51 +0000 (08:22 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/CoreProjects/workspaces/workspaces/trunk@3119 743128fe-103e-dd11-99c4-001b210b3e58

typo3/sysext/workspaces/Classes/Service/Workspaces.php

index d2f0aa8..c44720e 100644 (file)
@@ -46,10 +46,10 @@ class tx_Workspaces_Service_Workspaces {
 
                        // add default workspaces
                if ($GLOBALS['BE_USER']->checkWorkspace(array('uid' => (string) self::LIVE_WORKSPACE_ID))) {
-                       $availableWorkspaces[self::LIVE_WORKSPACE_ID] = $this->getWorkspaceTitle(self::LIVE_WORKSPACE_ID);
+                       $availableWorkspaces[self::LIVE_WORKSPACE_ID] = self::getWorkspaceTitle(self::LIVE_WORKSPACE_ID);
                }
                if ($GLOBALS['BE_USER']->checkWorkspace(array('uid' => (string) self::DRAFT_WORKSPACE_ID))) {
-                       $availableWorkspaces[self::DRAFT_WORKSPACE_ID] = $this->getWorkspaceTitle(self::DRAFT_WORKSPACE_ID);
+                       $availableWorkspaces[self::DRAFT_WORKSPACE_ID] = self::getWorkspaceTitle(self::DRAFT_WORKSPACE_ID);
                }
 
                        // add custom workspaces (selecting all, filtering by BE_USER check):