diff -aur typo3_src-4.2.6/typo3/mod/user/ws/index.php typo3_src-4.2.6_ws/typo3/mod/user/ws/index.php --- typo3_src-4.2.6/typo3/mod/user/ws/index.php 2009-02-10 10:36:35.000000000 +0100 +++ typo3_src-4.2.6_ws/typo3/mod/user/ws/index.php 2009-06-29 15:18:44.000000000 +0200 @@ -148,7 +148,6 @@ 0 => '['.$LANG->getLL('shortcut_onlineWS').']', -98 => $LANG->getLL('label_offlineWSes'), -99 => $LANG->getLL('label_allWSes'), - -1 => '['.$LANG->getLL('shortcut_offlineWS').']' ), 'diff' => array( 0 => $LANG->getLL('diff_no_diff'), @@ -158,7 +157,12 @@ 'expandSubElements' => '', ); - // Add workspaces: + // add default workspaces + if ($GLOBALS['BE_USER']->checkWorkspace(array('uid' => -1))) { + $this->MOD_MENU['display'][-1] = '['.$LANG->getLL('shortcut_offlineWS').']'; + } + + // add custom workspaces: if ($GLOBALS['BE_USER']->workspace===0) { // Spend time on this only in online workspace because it might take time: $workspaces = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,title,adminusers,members,reviewers','sys_workspace','pid=0'.t3lib_BEfunc::deleteClause('sys_workspace'),'','title'); foreach($workspaces as $rec) {