[!!!][CLEANUP] Remove compat layer for submodules 45/34345/3
authorMarkus Klein <klein.t3@reelworx.at>
Wed, 19 Nov 2014 13:28:25 +0000 (14:28 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 19 Nov 2014 20:07:47 +0000 (21:07 +0100)
This patch removes the compatibility layer for old links to
submodules of web_info and web_func.

Resolves: #63069
Releases: master
Change-Id: I0f5e1b7ea57ce9dab0c890064a34fc17fe4d0e93
Reviewed-on: http://review.typo3.org/34345
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/index.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-63069-RemovedCompatibilityLayerForSubmodulesOfModules.rst [new file with mode: 0644]

index bfa2fa4..8a78569 100644 (file)
 define('TYPO3_PROCEED_IF_NO_USER', 1);
 require __DIR__ . '/init.php';
 
-// This is a deprecation layer for extensions registered as submodules
-// of func and info module: Those modules now use mod.php as entry
-// points and not own index.php anymore, not adapted extensions will
-// therefor route to this script here. The code sorts out these script
-// calls and redirects to mod.php.
-// @deprecated since 6.2, remove two versions later.
-if (!empty($_SERVER['HTTP_REFERER'])) {
-       $typo3RequestDir = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_REQUEST_DIR');
-       if (strpos($_SERVER['HTTP_REFERER'], $typo3RequestDir . 'mod.php') === 0) {
-               parse_str(substr($_SERVER['HTTP_REFERER'], strpos($_SERVER['HTTP_REFERER'], '?') + 1), $referrerParameters);
-               // As of now, only web_info and web_func have been converted and need the compatibility layer
-               if (!empty($referrerParameters['M']) && in_array($referrerParameters['M'], array('web_info', 'web_func'), TRUE)) {
-                       \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
-                               'Module ' . $referrerParameters['M'] . ' called index.php. This is deprecated since TYPO3 6.2, use' .
-                               ' BackendUtility::getModuleUrl() instead to get the target for your call.'
-                       );
-                       parse_str($_SERVER['QUERY_STRING'], $queryParameters);
-                       header('Location: ' . \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl($referrerParameters['M'], $queryParameters, FALSE, TRUE));
-                       exit;
-               }
-               unset($referrerParameters);
-       }
-       unset($typo3RequestDir);
-}
-
 $loginController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\LoginController::class);
 $loginController->main();
 $loginController->printContent();
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-63069-RemovedCompatibilityLayerForSubmodulesOfModules.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-63069-RemovedCompatibilityLayerForSubmodulesOfModules.rst
new file mode 100644 (file)
index 0000000..880a5af
--- /dev/null
@@ -0,0 +1,23 @@
+======================================================================================
+Breaking: #63069 - Removed compatibility layer for submodules of func and info modules
+======================================================================================
+
+Description
+===========
+
+The web_info and web_func modules use the module dispatcher now and do not have
+their own index scripts.
+Therefore any submodule for those modules need to adjust links accordingly.
+
+
+Impact
+======
+
+Any third party code creating links to either web_info or web_func module using the old entry scripts,
+will not work anymore.
+
+
+Migration
+=========
+
+Use BackendUtility::getModuleUrl() instead to get the correct target for your links.