Project

General

Profile

Bug #12446 » 12446_v1.diff

Susanne Moog, 2011-01-21 16:38

View differences:

Classes/Service/Befunc.php (Arbeitskopie)
if ($GLOBALS['BE_USER']->workspace !== 0) {
$ctrl = t3lib_div::makeInstance('Tx_Workspaces_Controller_PreviewController', FALSE);
$uriBuilder = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Routing_UriBuilder');
$objectManager = t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager');
$uriBuilder = $objectManager->create('Tx_Extbase_MVC_Web_Routing_UriBuilder');
/**
* This seems to be very harsh to set this directly to "/typo3 but the viewOnClick also
* has /index.php as fixed value here and dealing with the backPath is very error-prone
Classes/Controller/PreviewController.php (Arbeitskopie)
$language = intval(t3lib_div::_GP('L'));
$controller = t3lib_div::makeInstance('Tx_Workspaces_Controller_ReviewController', TRUE);
$uriBuilder = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Routing_UriBuilder');
$uriBuilder = $this->objectManager->create('Tx_Extbase_MVC_Web_Routing_UriBuilder');
$wsSettingsPath = t3lib_div::getIndpEnv('TYPO3_SITE_URL') . 'typo3/';
$wsSettingsUri = $uriBuilder->uriFor('singleIndex', array(), $controller, 'workspaces', 'web_workspacesworkspaces');
(1-1/2)