Project

General

Profile

Bug #19718 » typo3_9975.patch

Administrator Admin, 2008-12-18 16:00

View differences:

typo3_src/typo3/sysext/cms/tslib/class.tslib_content.php 2008-12-18 15:23:09.000000000 +0100
$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
(1-1/3)