typo3_9975.patch

Administrator Admin, 2008-12-18 16:00

Download (1.5 KB)

View differences:

typo3_src/typo3/sysext/cms/tslib/class.tslib_content.php 2008-12-18 15:23:09.000000000 +0100
1237 1237
						$GLOBALS['TSFE']->sys_page->versionOL($conf['table'],$row,TRUE);
1238 1238

  
1239 1239
							// Language Overlay:
1240
						$sys_language_overlayID = $GLOBALS['TSFE']->sys_language_content;
1241
						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
1242
							$overlayRecord = $GLOBALS['TSFE']->sys_page->getPageOverlay($row['pid'], $GLOBALS['TSFE']->sys_language_uid);
1243
							if (count($overlayRecord)) { # check if a page overlay exists for the page which contains the current content element
1244
								$sys_language_overlayID = $GLOBALS['TSFE']->sys_language_uid;
1245
							}
1246
						}
1247

  
1240 1248
						if (is_array($row) && $GLOBALS['TSFE']->sys_language_contentOL) {
1241
							$row = $GLOBALS['TSFE']->sys_page->getRecordOverlay($conf['table'],$row,$GLOBALS['TSFE']->sys_language_content,$GLOBALS['TSFE']->sys_language_contentOL);
1249
							$row = $GLOBALS['TSFE']->sys_page->getRecordOverlay($conf['table'], $row, $sys_language_overlayID, $GLOBALS['TSFE']->sys_language_contentOL);
1242 1250
						}
1243 1251

  
1244 1252
						if (is_array($row)) { // Might be unset in the sys_language_contentOL