Project

General

Profile

Bug #24376 » 16794_4-4.diff

Administrator Admin, 2010-12-21 11:11

View differences:

t3lib/class.t3lib_befunc.php (working copy)
}
$viewDomain = self::getViewDomain($id, $rootLine);
// If previewing a page in a workspace, check if the page is a version overlay of an existing page
// If yes, we want to preview the original page and not the overlay (TYPO3 takes care of proper overlaying)
if (t3lib_extMgm::isLoaded('version') && !empty($GLOBALS['BE_USER']->workspace)) {
$record = self::getRecord('pages', $id);
if (!empty($record['t3ver_oid'])) {
$id = $record['t3ver_oid'];
}
}
$urlPreviewEnabled = $viewDomain . $viewScriptPreviewEnabled . $id . $addGetVars . $anchor;
$urlPreviewDisabled = $viewDomain . $viewScriptPreviewDisabled . $id . $addGetVars . $anchor;
(2-2/2)