From d8466034fa137ba8c6d82157c68b21824efb8b0b Mon Sep 17 00:00:00 2001
From: Anja Leichsenring <aleichsenring@ab-softlab.de>
Date: Sat, 8 Feb 2014 19:23:43 +0100
Subject: [PATCH] [TASK] Cleanup ext:indexed_search 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.

Resolves: #55796
Relates: #55672
Change-Id: Ida807864ea8d75a2737313c88d8f89b37bb816b6
Reviewed-on: https://review.typo3.org/27479
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
---
 .../Classes/Controller/IndexedPagesController.php        | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/indexed_search/Classes/Controller/IndexedPagesController.php b/typo3/sysext/indexed_search/Classes/Controller/IndexedPagesController.php
index 19eab6d29cfd..b2d60d680a1a 100644
--- a/typo3/sysext/indexed_search/Classes/Controller/IndexedPagesController.php
+++ b/typo3/sysext/indexed_search/Classes/Controller/IndexedPagesController.php
@@ -72,6 +72,11 @@ class IndexedPagesController extends \TYPO3\CMS\Backend\Module\AbstractFunctionM
 	 */
 	public $indexerObj;
 
+	/**
+	 * @int Default number of list entries per page
+	 */
+	protected $maxListPerPage;
+
 	/**
 	 * Initialize menu array internally
 	 *
@@ -164,8 +169,8 @@ class IndexedPagesController extends \TYPO3\CMS\Backend\Module\AbstractFunctionM
 		} else {
 			// Detail listings:
 			// Depth function menu:
-			$h_func = BackendUtility::getFuncMenu($this->pObj->id, 'SET[type]', $this->pObj->MOD_SETTINGS['type'], $this->pObj->MOD_MENU['type'], 'index.php');
-			$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[type]', $this->pObj->MOD_SETTINGS['type'], $this->pObj->MOD_MENU['type']);
+			$h_func .= BackendUtility::getFuncMenu($this->pObj->id, 'SET[depth]', $this->pObj->MOD_SETTINGS['depth'], $this->pObj->MOD_MENU['depth']);
 			// Show title / function menu:
 			$theOutput .= $this->pObj->doc->header($LANG->getLL('title'));
 			$theOutput .= $this->pObj->doc->section('', $h_func, 0, 1);
-- 
GitLab