Fixed bug #5918: No language overlay with TS select on table pages (Thanks to Fabrizi...
authorTolleiv Nietsch <info@tolleiv.de>
Tue, 30 Nov 2010 14:20:54 +0000 (14:20 +0000)
committerTolleiv Nietsch <info@tolleiv.de>
Tue, 30 Nov 2010 14:20:54 +0000 (14:20 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9687 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/content/class.tslib_content_content.php

index 0c47ce3..701b759 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-30  Tolleiv Nietsch    <typo3@tolleiv.de>
+
+       * Fixed bug #5918: No language overlay with TS select on table pages (Thanks to Fabrizio Branca)
+       
 2010-11-30  Steffen Kamper  <steffen@typo3.org>
 
        * Fixed bug #16608: Javascript flashmessage miss named severity
index 5f3360c..765b774 100644 (file)
@@ -114,7 +114,11 @@ class tslib_content_Content extends tslib_content_Abstract {
 
                                                        // Language overlay:
                                                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);
+                                                       if ($conf['table'] == 'pages') {
+                                                               $row = $GLOBALS['TSFE']->sys_page->getPageOverlay($row);
+                                                       } else {
+                                                               $row = $GLOBALS['TSFE']->sys_page->getRecordOverlay($conf['table'], $row, $GLOBALS['TSFE']->sys_language_content, $GLOBALS['TSFE']->sys_language_contentOL);
+                                                       }
                                                }
 
                                                if (is_array($row)) { // Might be unset in the sys_language_contentOL