Bug #22121 ยป preview.patch
t3lib/class.t3lib_befunc.php | ||
---|---|---|
$urlPreviewEnabled = $preUrl . $viewScriptPreviewEnabled . $id . $addGetVars . $anchor;
|
||
$urlPreviewDisabled = $preUrl . $viewScriptPreviewDisabled . $id . $addGetVars . $anchor;
|
||
if ($GLOBALS['BE_USER']->user['workspace_preview']) {
|
||
// fb('enabled');
|
||
return "previewWin=window.open('" . $urlPreviewDisabled .
|
||
"','newTYPO3frontendWindow');" . ( $switchFocus ? 'previewWin.focus();' : '');
|
||
} else {
|
||
// fb('disabled');
|
||
return "previewWin=window.open('" . $urlPreviewEnabled .
|
||
"','newTYPO3frontendWindow');" . ( $switchFocus ? 'previewWin.focus();' : '');
|
||
}
|
||
/*
|
||
return "previewWin=window.open(top.WorkspaceFrontendPreviewEnabled?'" .
|
||
$urlPreviewDisabled . "':'" . $urlPreviewEnabled .
|
||
"','newTYPO3frontendWindow');" . ( $switchFocus ? 'previewWin.focus();' : '');
|
||
*/
|
||
}
|
||
/**
|