From c4be1a4716b2dddd7b7bcf374eeed3a0fb99e714 Mon Sep 17 00:00:00 2001 From: Anja Leichsenring <aleichsenring@ab-softlab.de> Date: Sat, 8 Feb 2014 20:05:25 +0100 Subject: [PATCH] [TASK] Cleanup ext:frontend web_info module routing 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 --- .../Classes/Controller/PageInformationController.php | 6 +++--- .../Classes/Controller/TranslationStatusController.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/typo3/sysext/frontend/Classes/Controller/PageInformationController.php b/typo3/sysext/frontend/Classes/Controller/PageInformationController.php index 7978e5554a4c..644c51952653 100644 --- a/typo3/sysext/frontend/Classes/Controller/PageInformationController.php +++ b/typo3/sysext/frontend/Classes/Controller/PageInformationController.php @@ -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 diff --git a/typo3/sysext/frontend/Classes/Controller/TranslationStatusController.php b/typo3/sysext/frontend/Classes/Controller/TranslationStatusController.php index dc30143e7252..b218c6415342 100644 --- a/typo3/sysext/frontend/Classes/Controller/TranslationStatusController.php +++ b/typo3/sysext/frontend/Classes/Controller/TranslationStatusController.php @@ -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 />'); -- GitLab