[!!!][TASK] Deprecate usage of old Extension Manager
[Packages/TYPO3.CMS.git] / typo3 / sysext / em / classes / index.php
index edbc4f1..f796ae5 100644 (file)
@@ -378,12 +378,17 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
 
                if (!is_array($globalSettings)) {
                                // no settings saved yet, set default values
-                       $globalSettings['showOldModules'] = 1;
                        $globalSettings['inlineToWindow'] = 1;
                        $globalSettings['displayMyExtensions'] = 0;
                }
 
-               if ($globalSettings['showOldModules'] == 0) {
+               // @deprecated Old Extension Manager is officially not supported anymore and may be removed anytime
+               $globalSettings['showOldModules'] = isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['showOldModules']) ? (bool)$GLOBALS['TYPO3_CONF_VARS']['EXT']['showOldModules'] : FALSE;
+               if ($globalSettings['showOldModules']) {
+                       t3lib_div::deprecationLog(
+                               'Use of the old Extension Manager is obsolete since TYPO3 4.6 and is as such no longer supported.'
+                       );
+               } else {
                        unset(
                                $this->MOD_MENU['function']['loaded_list'],
                                $this->MOD_MENU['function']['installed_list'],
@@ -2606,4 +2611,4 @@ $SOBE->checkExtObj();
 $SOBE->main();
 $SOBE->printContent();
 
-?>
\ No newline at end of file
+?>