2010-11-16 Tolleiv Nietsch <info@tolleiv.de>
* Fixed bug: #10778 Consider http://bugs.typo3.org/view.php?id=9508 when implementing preview link in new module
+ * Fixed bug: #10819 viewOnClick causes error if frontendpreview is disabled
2010-11-12 Oliver Hader <oliver@tpyo3.org>
*/
public function preProcess($pageUid, $backPath, $rootLine, $anchorSection, &$viewScript, $additionalGetVars, $switchFocus) {
if ($GLOBALS['BE_USER']->workspace !== 0 && !$GLOBALS['BE_USER']->user['workspace_preview']) {
- $ctrl = t3lib_div::makeInstance('Tx_Workspaces_Controller_PreviewController', true);
+ $ctrl = t3lib_div::makeInstance('Tx_Workspaces_Controller_PreviewController', FALSE);
$uriBuilder = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Routing_UriBuilder');
/**
* @todo BACK_PATH is not available be still needed when used during AJAX request