[TASK] Cleanup ext:frontend web_info module routing 82/27482/4
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 8 Feb 2014 19:05:25 +0000 (20:05 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 10 Feb 2014 12:18:34 +0000 (13:18 +0100)
The function menu of info module API method can create
proper link targets without mentioning index.php. The
patch is a preparation for switching the entry point
of info module to mod.php.

Change-Id: I467e99ff50513033f887049e5b4a487f0ade645b
Resolves: #55797
Relates: #55672
Releases: 6.2
Reviewed-on: https://review.typo3.org/27482
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/frontend/Classes/Controller/PageInformationController.php
typo3/sysext/frontend/Classes/Controller/TranslationStatusController.php

index 7978e55..644c519 100644 (file)
@@ -77,7 +77,7 @@ class PageInformationController extends \TYPO3\CMS\Backend\Module\AbstractFuncti
                $dblist->descrTable = '_MOD_' . $GLOBALS['MCONF']['name'];
                $dblist->backPath = $BACK_PATH;
                $dblist->thumbs = 0;
-               $dblist->script = 'index.php';
+               $dblist->script = '_DISPATCH';
                $dblist->showIcon = 0;
                $dblist->setLMargin = 0;
                $dblist->agePrefixes = $LANG->sL('LLL:EXT:lang/locallang_core.xlf:labels.minutesHoursDaysYears');
@@ -85,8 +85,8 @@ class PageInformationController extends \TYPO3\CMS\Backend\Module\AbstractFuncti
                // PAGES:
                $this->pObj->MOD_SETTINGS['pages_levels'] = $this->pObj->MOD_SETTINGS['depth'];
                // ONLY for the sake of dblist module which uses this value.
-               $h_func = BackendUtility::getFuncMenu($this->pObj->id, 'SET[depth]', $this->pObj->MOD_SETTINGS['depth'], $this->pObj->MOD_MENU['depth'], 'index.php');
-               $h_func .= BackendUtility::getFuncMenu($this->pObj->id, 'SET[pages]', $this->pObj->MOD_SETTINGS['pages'], $this->pObj->MOD_MENU['pages'], 'index.php');
+               $h_func = BackendUtility::getFuncMenu($this->pObj->id, 'SET[depth]', $this->pObj->MOD_SETTINGS['depth'], $this->pObj->MOD_MENU['depth']);
+               $h_func .= BackendUtility::getFuncMenu($this->pObj->id, 'SET[pages]', $this->pObj->MOD_SETTINGS['pages'], $this->pObj->MOD_MENU['pages']);
                $dblist->start($this->pObj->id, 'pages', 0);
                $dblist->generateList();
                // CSH
index dc30143..b218c64 100644 (file)
@@ -76,8 +76,8 @@ class TranslationStatusController extends \TYPO3\CMS\Backend\Module\AbstractFunc
                $theOutput = $this->pObj->doc->header($GLOBALS['LANG']->getLL('lang_title'));
                if ($this->pObj->id) {
                        // Depth selector:
-                       $h_func = BackendUtility::getFuncMenu($this->pObj->id, 'SET[depth]', $this->pObj->MOD_SETTINGS['depth'], $this->pObj->MOD_MENU['depth'], 'index.php');
-                       $h_func .= BackendUtility::getFuncMenu($this->pObj->id, 'SET[lang]', $this->pObj->MOD_SETTINGS['lang'], $this->pObj->MOD_MENU['lang'], 'index.php');
+                       $h_func = BackendUtility::getFuncMenu($this->pObj->id, 'SET[depth]', $this->pObj->MOD_SETTINGS['depth'], $this->pObj->MOD_MENU['depth']);
+                       $h_func .= BackendUtility::getFuncMenu($this->pObj->id, 'SET[lang]', $this->pObj->MOD_SETTINGS['lang'], $this->pObj->MOD_MENU['lang']);
                        $theOutput .= $h_func;
                        // Add CSH:
                        $theOutput .= BackendUtility::cshItem('_MOD_web_info', 'lang', $GLOBALS['BACK_PATH'], '|<br />');