Follow-up to #13554: Make the code in line with follow-up to #13739
authorErnesto Baschny <ernst@cron-it.de>
Fri, 26 Mar 2010 16:04:15 +0000 (16:04 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Fri, 26 Mar 2010 16:04:15 +0000 (16:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@7186 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/viewpage/view/index.php

index 4800bf8..8b27396 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-26  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Follow-up to #13554: Make the code in line with follow-up to #13739
+
 2010-03-25  Ernesto Baschny  <ernst@cron-it.de>
 
        * Fixed bug #13901: GIFBULDER generates same picture twice (in typo3temp/GB) (thanks to Vladimir Podkovanov)
index e13bb8c..7a0a3f8 100755 (executable)
@@ -117,8 +117,9 @@ class SC_mod_web_view_index {
 
                        // preview of mount pages
                $sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
-               $sys_page->init();
-               if ($mountPointInfo = $sys_page->getMountPointInfo($this->id)) {
+               $sys_page->init(FALSE);
+               $mountPointInfo = $sys_page->getMountPointInfo($this->id);
+               if ($mountPointInfo && $mountPointInfo['overlay']) {
                        $this->id = $mountPointInfo['mount_pid'];
                        $addCmd .= '&MP=' . $mountPointInfo['MPvar'];
                }