Project

General

Profile

Bug #20713 » 11468_v2_clean.patch

Administrator Admin, 2009-11-15 23:28

View differences:

t3lib/class.t3lib_befunc.php (working copy)
* @return string
*/
public static function viewOnClick($id, $backPath = '', $rootLine = '', $anchor = '', $altUrl = '', $addGetVars = '', $switchFocus = TRUE) {
if ($altUrl) {
$url = $altUrl;
} else {
$viewScriptPreviewEnabled = '/' . TYPO3_mainDir . 'mod/user/ws/wsol_preview.php?id=';
$viewScriptPreviewDisabled = '/index.php?id=';
if ($altUrl) {
$viewScriptPreviewEnabled = $viewScriptPreviewDisabled = $altUrl;
}
// check alternate Domains
if ($rootLine) {
$parts = parse_url(t3lib_div::getIndpEnv('TYPO3_SITE_URL'));
......
$urlPreviewEnabled = $preUrl . $viewScriptPreviewEnabled . $id . $addGetVars . $anchor;
$urlPreviewDisabled = $preUrl . $viewScriptPreviewDisabled . $id . $addGetVars . $anchor;
}
return "previewWin=window.open(top.WorkspaceFrontendPreviewEnabled?'" .
$urlPreviewDisabled . "':'" . $urlPreviewEnabled .
(3-3/3)