Fixed bug #13554: Web>View on mount pages via backend (thanks to Georg Ringer)
authorErnesto Baschny <ernst@cron-it.de>
Thu, 4 Mar 2010 14:06:18 +0000 (14:06 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 4 Mar 2010 14:06:18 +0000 (14:06 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7075 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 2a6b425..bc58920 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-04  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Fixed bug #13554: Web>View on mount pages via backend (thanks to Georg Ringer)
+
 2010-03-03  Xavier Perseguers  <typo3@perseguers.ch>
 
        * Fixed bug #10003: t3lib_db explainOutput does not work with table alias (thanks to Dan Osipov)
index 1d948e5..79bba13 100755 (executable)
@@ -114,8 +114,15 @@ class SC_mod_web_view_index {
                                                t3lib_BEfunc::firstDomainRecord(t3lib_BEfunc::BEgetRootLine($this->id)):
                                                '';
 
+                       // preview of mount pages
+               $sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
+               $sys_page->init();
+               if ($mountPointInfo = $sys_page->getMountPointInfo($this->id)) {
+                       $this->id = $mountPointInfo['mount_pid'];
+                       $addCmd .= '&MP=' . $mountPointInfo['MPvar'];
+               }
+
                $this->url.= ($dName?(t3lib_div::getIndpEnv('TYPO3_SSL') ? 'https://' : 'http://').$dName:$BACK_PATH.'..').'/index.php?id='.$this->id.($this->type?'&type='.$this->type:'').$addCmd;
-               //debug($this->url);
        }
 
        /**