Fixed bug #13739: Show clickmenu in page tree does not work for mount pages
authorErnesto Baschny <ernst@cron-it.de>
Thu, 18 Mar 2010 07:18:23 +0000 (07:18 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 18 Mar 2010 07:18:23 +0000 (07:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7125 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index dba2f76..ce62ea2 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,12 @@
-2010-03-17 Andreas Otto <andreas@otto-hanika.de>
+2010-03-18  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Fixed bug #13739: "Show" clickmenu in page tree does not work for mount pages
+
+2010-03-17  Andreas Otto  <andreas@otto-hanika.de>
 
        * Fixed bug #8597: Defining alternative icons with specConfs.[pid].pageIcon does not work in indexed_search (thanks to Steffen Müller).
 
-2010-03-17 Andreas Otto <andreas@otto-hanika.de>
+2010-03-17  Andreas Otto  <andreas@otto-hanika.de>
 
        * Fixed bug #12959: cHashParams in index_phash is too small (thanks to Dmitry Dulepov).
 
index 1121ee9..6495061 100644 (file)
@@ -2646,6 +2646,15 @@ final class t3lib_BEfunc {
                                // Add it:
                        $addGetVars .= $suffix;
                }
+       
+                       // check if we need to preview a mount point
+               $sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
+               $sys_page->init(false);
+               $mountPointInfo = $sys_page->getMountPointInfo($id);
+               if ($mountPointInfo) {
+                       $id = $mountPointInfo['mount_pid'];
+                       $addGetVars .= '&MP=' . $mountPointInfo['MPvar'];
+               }
 
                $viewDomain = t3lib_BEfunc::getViewDomain($id, $rootLine);
                $urlPreviewEnabled  = $viewDomain . $viewScriptPreviewEnabled . $id . $addGetVars . $anchor;