Project

General

Profile

Bug #22121 ยป preview.patch

Administrator Admin, 2010-02-23 13:48

View differences:

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();' : '');
*/
}
/**
    (1-1/1)