Project

General

Profile

Bug #19718 » 9975_v2.patch

Administrator Admin, 2009-02-14 13:37

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
$GLOBALS['TSFE']->sys_page->versionOL($conf['table'],$row,TRUE);
// Language Overlay:
$sys_language_overlayID = $GLOBALS['TSFE']->sys_language_content;
if ($slide && $GLOBALS['TSFE']->sys_language_mode === 'content_fallback' && $row['pid'] != $GLOBALS['TSFE']->id) { # the page overlay must exist if the strict mode is enabled
$overlayRecord = $GLOBALS['TSFE']->sys_page->getPageOverlay($row['pid'], $GLOBALS['TSFE']->sys_language_uid);
if (count($overlayRecord)) { # check if a page overlay exists for the page which contains the current content element
$sys_language_overlayID = $GLOBALS['TSFE']->sys_language_uid;
}
}
if (is_array($row) && $GLOBALS['TSFE']->sys_language_contentOL) {
$row = $GLOBALS['TSFE']->sys_page->getRecordOverlay($conf['table'],$row,$GLOBALS['TSFE']->sys_language_content,$GLOBALS['TSFE']->sys_language_contentOL);
$row = $GLOBALS['TSFE']->sys_page->getRecordOverlay($conf['table'], $row, $sys_language_overlayID, $GLOBALS['TSFE']->sys_language_contentOL);
}
if (is_array($row)) { // Might be unset in the sys_language_contentOL
(2-2/3)