[TASK] EXT:info Uniform extension directory structure 85/41685/2
authorMichael Oehlhof <typo3@oehlhof.de>
Sat, 18 Jul 2015 17:20:41 +0000 (19:20 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 20 Jul 2015 14:03:02 +0000 (16:03 +0200)
Moved the code from the mod1 directory to the Modules/Info directory.

Resolves: #68353
Releases: master
Change-Id: I3ffcc7a3c69f11200c81a36a30a6ef603fc91996
Reviewed-on: http://review.typo3.org/41685
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Frederic Gaus <frederic.gaus@flagbit.de>
Tested-by: Frederic Gaus <frederic.gaus@flagbit.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/info/Modules/Info/index.php [new file with mode: 0644]
typo3/sysext/info/ext_tables.php
typo3/sysext/info/mod1/index.php [deleted file]

diff --git a/typo3/sysext/info/Modules/Info/index.php b/typo3/sysext/info/Modules/Info/index.php
new file mode 100644 (file)
index 0000000..8bd9544
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+/**
+ * Module: Web>Info
+ * Presents various page related information from extensions
+ */
+$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Info\Controller\InfoModuleController::class);
+$GLOBALS['SOBE']->init();
+
+// Checking for first level external objects
+$GLOBALS['SOBE']->checkExtObj();
+
+// Checking second level external objects
+$GLOBALS['SOBE']->checkSubExtObj();
+$GLOBALS['SOBE']->main();
+$GLOBALS['SOBE']->printContent();
index 214a171..fc55b5d 100644 (file)
@@ -6,14 +6,14 @@ if (TYPO3_MODE === 'BE') {
                'web',
                'info',
                '',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/',
+               'EXT:info/Modules/Info/',
                array(
                        'script' => '_DISPATCH',
                        'access' => 'user,group',
                        'name' => 'web_info',
                        'labels' => array(
                                'tabs_images' => array(
-                                       'tab' => '../Resources/Public/Icons/module-info.svg',
+                                       'tab' => 'EXT:info/Resources/Public/Icons/module-info.svg',
                                ),
                                'll_ref' => 'LLL:EXT:lang/locallang_mod_web_info.xlf',
                        ),
diff --git a/typo3/sysext/info/mod1/index.php b/typo3/sysext/info/mod1/index.php
deleted file mode 100644 (file)
index 8bd9544..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * Module: Web>Info
- * Presents various page related information from extensions
- */
-$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Info\Controller\InfoModuleController::class);
-$GLOBALS['SOBE']->init();
-
-// Checking for first level external objects
-$GLOBALS['SOBE']->checkExtObj();
-
-// Checking second level external objects
-$GLOBALS['SOBE']->checkSubExtObj();
-$GLOBALS['SOBE']->main();
-$GLOBALS['SOBE']->printContent();