[TASK] Streamline addModulePath and addModule registrations 14/41814/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 22 Jul 2015 13:43:02 +0000 (15:43 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 22 Jul 2015 14:22:22 +0000 (16:22 +0200)
Use EXT: to register the path to the module.

Resolves: #68466
Releases: master
Change-Id: Ib2ecec7ed3b1cfea66b11cc03c5b416a91dff76a
Reviewed-on: http://review.typo3.org/41814
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/ext_tables.php
typo3/sysext/compatibility6/ext_tables.php
typo3/sysext/form/ext_tables.php
typo3/sysext/openid/ext_tables.php
typo3/sysext/rtehtmlarea/ext_tables.php

index bf8feab..b2dd8d3 100644 (file)
@@ -5,135 +5,135 @@ if (TYPO3_MODE === 'BE') {
        // Main module
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'main',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Main/'
+               'EXT:backend/Modules/Main/'
        );
 
        // Register record edit module
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'record_edit',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/FormEngine/'
+               'EXT:backend/Modules/FormEngine/'
        );
 
        // Register record history module
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'record_history',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/RecordHistory/'
+               'EXT:backend/Modules/RecordHistory/'
        );
 
        // Register login frameset
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'login_frameset',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/LoginFrameset/'
+               'EXT:backend/Modules/LoginFrameset/'
        );
 
        // Register logout
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'logout',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Logout/'
+               'EXT:backend/Modules/Logout/'
        );
 
        // Register file_navframe
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('file', 'file_navframe');
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'file_navframe',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/FileSystemNavigationFrame/'
+               'EXT:backend/Modules/FileSystemNavigationFrame/'
        );
 
        // Register file_edit
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'file_edit',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Edit/'
+               'EXT:backend/Modules/File/Edit/'
        );
 
        // Register file_newfolder
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'file_newfolder',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Newfolder/'
+               'EXT:backend/Modules/File/Newfolder/'
        );
 
        // Register file_rename
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'file_rename',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Rename/'
+               'EXT:backend/Modules/File/Rename/'
        );
 
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'file_replace',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Replace/'
+               'EXT:backend/Modules/File/Replace/'
        );
 
        // Register file_rename
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'file_upload',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Upload/'
+               'EXT:backend/Modules/File/Upload/'
        );
 
        // Register tce_db
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'tce_db',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Database/'
+               'EXT:backend/Modules/File/Database/'
        );
 
        // Register tce_file
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'tce_file',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/File/Administration/'
+               'EXT:backend/Modules/File/Administration/'
        );
 
        // Register edit wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_edit',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/EditWizard/'
+               'EXT:backend/Modules/Wizards/EditWizard/'
        );
 
        // Register add wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_add',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/AddWizard/'
+               'EXT:backend/Modules/Wizards/AddWizard/'
        );
 
        // Register list wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_list',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/ListWizard/'
+               'EXT:backend/Modules/Wizards/ListWizard/'
        );
 
        // Register table wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_table',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/TableWizard/'
+               'EXT:backend/Modules/Wizards/TableWizard/'
        );
 
        // Register rte wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_rte',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/RteWizard/'
+               'EXT:backend/Modules/Wizards/RteWizard/'
        );
 
        // Register colorpicker wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_colorpicker',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/ColorpickerWizard/'
+               'EXT:backend/Modules/Wizards/ColorpickerWizard/'
        );
 
        // Register backend_layout wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_backend_layout',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/BackendLayoutWizard/'
+               'EXT:backend/Modules/Wizards/BackendLayoutWizard/'
        );
 
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
                'web',
                'layout',
                'top',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Layout/',
+               'EXT:backend/Modules/Layout/',
                array(
                        'script' => '_DISPATCH',
                        'access' => 'user,group',
                        'name' => 'web_layout',
                        'labels' => array(
                                'tabs_images' => array(
-                                       'tab' => '../../Resources/Public/Icons/module-page.svg',
+                                       'tab' => 'EXT:backend/Resources/Public/Icons/module-page.svg',
                                ),
                                'll_ref' => 'LLL:EXT:backend/Resources/Private/Language/locallang_mod.xlf',
                        ),
@@ -143,37 +143,37 @@ if (TYPO3_MODE === 'BE') {
        // Register new record
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'db_new',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/NewRecord/'
+               'EXT:backend/Modules/NewRecord/'
        );
 
        // Register new content element module
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'new_content_element',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/NewContentElement/'
+               'EXT:backend/Modules/NewContentElement/'
        );
 
        // Register move element module
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'move_element',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/MoveElement/'
+               'EXT:backend/Modules/MoveElement/'
        );
 
        // Register show item module
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'show_item',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/ShowItem/'
+               'EXT:backend/Modules/ShowItem/'
        );
 
        // Register browser
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'browser',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Browser/'
+               'EXT:backend/Modules/Browser/'
        );
 
        // Register dummy window
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'dummy',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Dummy/'
+               'EXT:backend/Modules/Dummy/'
        );
 
        // Register BackendLayoutDataProvider for PageTs
index 9ba50f3..f322fa2 100644 (file)
@@ -14,6 +14,6 @@ if (TYPO3_MODE === 'BE') {
        // Register forms wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_forms',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('compatibility6', 'Modules/Wizards/FormsWizard/')
+               'EXT:compatibility6/Modules/Wizards/FormsWizard/'
        );
 }
index 98fbbd0..55689b3 100644 (file)
@@ -5,6 +5,6 @@ if (TYPO3_MODE === 'BE') {
        // Register wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_form',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/FormWizard/'
+               'EXT:form/Modules/Wizards/FormWizard/'
        );
 }
\ No newline at end of file
index 3ea1f45..2004099 100644 (file)
@@ -5,7 +5,7 @@ if (TYPO3_MODE === 'BE') {
        // Register wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'wizard_openid',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'wizard/'
+               'EXT:openid/wizard/'
        );
 
        // Add field to setup module
index 1922a46..d07cfd4 100644 (file)
@@ -64,24 +64,24 @@ if (TYPO3_MODE === 'BE') {
        // Register RTE browse links wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'rtehtmlarea_wizard_browse_links',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/BrowseLinks/'
+               'EXT:rtehtmlarea/Modules/BrowseLinks/'
        );
 
        // Register RTE select image wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'rtehtmlarea_wizard_select_image',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/SelectImage/'
+               'EXT:rtehtmlarea/Modules/SelectImage/'
        );
 
        // Register RTE user elements wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'rtehtmlarea_wizard_user_elements',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/UserElements/'
+               'EXT:rtehtmlarea/Modules/UserElements/'
        );
 
        // Register RTE parse html wizard
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'rtehtmlarea_wizard_parse_html',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/ParseHtml/'
+               'EXT:rtehtmlarea/Modules/ParseHtml/'
        );
 }