From 6f35d8335fb3be8213ef295390dd9a23989cf58d Mon Sep 17 00:00:00 2001 From: Michael Oehlhof <typo3@oehlhof.de> Date: Mon, 28 Nov 2016 14:06:39 +0100 Subject: [PATCH] [BUGFIX] BackendUtility::getModuleUrl called with correct parameter count The obsolete third and fourth parameter are removed from the calls. Resolves: #78819 Releases: master Change-Id: I27639218b18d4e19c0dfbe91e834050c460a2b49 Reviewed-on: https://review.typo3.org/50794 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Andreas Fernandez <typo3@scripting-base.de> Tested-by: Andreas Fernandez <typo3@scripting-base.de> --- typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php | 2 +- .../recordlist/Classes/Controller/ElementBrowserController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php b/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php index 0134fa648378..f1cc1fdda4b6 100644 --- a/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php +++ b/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php @@ -640,7 +640,7 @@ class ClickMenu $urlParams = []; $urlParams['id'] = $table === 'pages' ? $uid : $rec['pid']; $urlParams['table'] = $table === 'pages' ? '' : $table; - $url = BackendUtility::getModuleUrl('web_list', $urlParams, '', true); + $url = BackendUtility::getModuleUrl('web_list', $urlParams); return $this->linkItem( htmlspecialchars($this->languageService->getLL('CM_db_list')), $this->iconFactory->getIcon('actions-system-list-open', Icon::SIZE_SMALL)->render(), diff --git a/typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php b/typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php index 01c12ba98a36..136433df90f3 100644 --- a/typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php +++ b/typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php @@ -88,7 +88,7 @@ class ElementBrowserController { // Fallback for old calls, which use mode "wizard" or "rte" for link selection if ($this->mode === 'wizard' || $this->mode === 'rte') { - return $response->withStatus(303)->withHeader('Location', BackendUtility::getModuleUrl('wizard_link', $_GET, false, true)); + return $response->withStatus(303)->withHeader('Location', BackendUtility::getModuleUrl('wizard_link', $_GET)); } $response->getBody()->write($this->main()); -- GitLab