Project

General

Profile

Bug #10693 » forge10693_v2.diff

Francois Suter, 2010-11-10 11:01

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/3)