workspace !== 0 && !$GLOBALS['BE_USER']->user['workspace_preview']) { $ctrl = t3lib_div::makeInstance('Tx_Workspaces_Controller_PreviewController', true); $uriBuilder = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Routing_UriBuilder'); /** * @todo BACK_PATH is not available be still needed when used during AJAX request * @todo make sure this would work in local extension installation too */ $backPath = isset($GLOBALS['BACK_PATH']) ? $GLOBALS['BACK_PATH'] : '../../../' . TYPO3_mainDir; // @todo why do we need these additional params? the URIBuilder should add the controller, but he doesn't :( $additionalParams = '&tx_workspaces_web_workspacesworkspaces%5Bcontroller%5D=Preview&M=web_WorkspacesWorkspaces&id='; $viewScript = '/' . $backPath . $uriBuilder->uriFor('index', array(), $ctrl, 'workspaces', 'web_workspacesworkspaces') . $additionalParams; } } } if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Befunc.php']) { include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Befunc.php']); } ?>