Project

General

Profile

Bug #13572 ยป v1.patch

Tolleiv Nietsch, 2011-03-03 10:28

View differences:

Classes/Service/Fehooks.php (working copy)
* @return void
*/
public function hook_eofe($params, $pObj) {
if ($pObj->fePreview != 2) {
if ($pObj->fePreview != 2 || $pObj->whichWorkspace() === 0) {
return;
}
if(!$GLOBALS['BE_USER']->getSessionData('workspaces.backend_domain')) {
$backendDomain = t3lib_div::getIndpEnv('TYPO3_HOST_ONLY');
} else {
$backendDomain = $GLOBALS['BE_USER']->getSessionData('workspaces.backend_domain');
}
echo $GLOBALS['TSFE']->cObj->cObjGetSingle(
'FLUIDTEMPLATE',
array(
'file' => 'EXT:workspaces/Resources/Private/Templates/Preview/Preview.html',
'variables.' => array(
'backendDomain' => 'TEXT',
'backendDomain.' => array('value' => $GLOBALS['BE_USER']->getSessionData('workspaces.backend_domain'))
'backendDomain.' => array('value' => $backendDomain)
)
)
);
    (1-1/1)