[BUGFIX] BackendUtility::getModuleUrl called with correct parameter count 94/50794/2
authorMichael Oehlhof <typo3@oehlhof.de>
Mon, 28 Nov 2016 13:06:39 +0000 (14:06 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Tue, 29 Nov 2016 20:31:24 +0000 (21:31 +0100)
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
typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php

index 0134fa6..f1cc1fd 100644 (file)
@@ -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(),
index 01c12ba..136433d 100644 (file)
@@ -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());