[BUGFIX] Uncaught Exception on multi-language site
authorMartin Helmich <m.helmich@mittwald.de>
Sat, 25 Aug 2012 10:15:17 +0000 (12:15 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Mon, 3 Sep 2012 12:48:55 +0000 (14:48 +0200)
Change-Id: I62d28c206a43d178ae5ec830126b9e86013de6bc
Resolves: #40168
Releases: 6.0
Reviewed-on: http://review.typo3.org/14066
Tested-by: Mario Rimann
Reviewed-by: Mario Rimann
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/frontend/Classes/Page/PageRepository.php

index d0b2055..301b9b4 100644 (file)
@@ -315,11 +315,11 @@ class PageRepository {
                                // Currently the showHiddenRecords of TSFE set will allow pages_language_overlay records to be selected as they are child-records of a page.
                                // However you may argue that the showHiddenField flag should determine this. But that's not how it's done right now.
                                // Selecting overlay record:
-                               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(implode(',', $fieldArr), 'sys_language_overlay', ((('pid=' . intval($page_id)) . '
-                                                               AND sys_language_uid=') . intval($lUid)) . $this->enableFields('sys_language_overlay'), '', '', '1');
+                               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(implode(',', $fieldArr), 'pages_language_overlay', ((('pid=' . intval($page_id)) . '
+                                                               AND sys_language_uid=') . intval($lUid)) . $this->enableFields('pages_language_overlay'), '', '', '1');
                                $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
                                $GLOBALS['TYPO3_DB']->sql_free_result($res);
-                               $this->versionOL('sys_language_overlay', $row);
+                               $this->versionOL('pages_language_overlay', $row);
                                if (is_array($row)) {
                                        $row['_PAGES_OVERLAY'] = TRUE;
                                        $row['_PAGES_OVERLAY_UID'] = $row['uid'];
@@ -1190,4 +1190,4 @@ class PageRepository {
 }
 
 
-?>
\ No newline at end of file
+?>