[BUGFIX] Properly register extbase BE modules
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 22 Sep 2012 10:37:37 +0000 (12:37 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 22 Sep 2012 10:39:11 +0000 (12:39 +0200)
Change ExtensionUtility::registerModule($_EXTKEY, ...) calls to
ExtensionUtility::registerModule('TYPO3.CMS.' . $_EXTKEY, ...)

Change-Id: Ia5edc3f73e66d31e69941ebbbe457d294bf7084c
Fixes: #40333
Relates: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14196
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/about/ext_tables.php
typo3/sysext/aboutmodules/ext_tables.php
typo3/sysext/beuser/ext_tables.php
typo3/sysext/extensionmanager/ext_tables.php
typo3/sysext/reports/ext_tables.php
typo3/sysext/viewpage/ext_tables.php

index f720455..19a493c 100644 (file)
@@ -4,12 +4,17 @@ if (!defined('TYPO3_MODE')) {
 }
 // Avoid that this block is loaded in frontend or within upgrade wizards
 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
-       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'help', 'about', 'top', array(
-               'About' => 'index'
-       ), array(
-               'access' => 'user,group',
-               'icon' => 'EXT:about/ext_icon.gif',
-               'labels' => 'LLL:EXT:lang/locallang_mod_help_about.xlf'
-       ));
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               'TYPO3.CMS.' . $_EXTKEY,
+               'help',
+               'about',
+               'top',
+               array('About' => 'index'),
+               array(
+                       'access' => 'user,group',
+                       'icon' => 'EXT:about/ext_icon.gif',
+                       'labels' => 'LLL:EXT:lang/locallang_mod_help_about.xlf'
+               )
+       );
 }
 ?>
\ No newline at end of file
index 372697e..10519dd 100755 (executable)
@@ -4,12 +4,19 @@ if (!defined('TYPO3_MODE')) {
 }
 // Avoid that this block is loaded in frontend or within upgrade wizards
 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
-       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'help', 'aboutmodules', 'after:about', array(
-               'Modules' => 'index'
-       ), array(
-               'access' => 'user,group',
-               'icon' => 'EXT:aboutmodules/ext_icon.gif',
-               'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
-       ));
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               'TYPO3.CMS.' . $_EXTKEY,
+               'help',
+               'aboutmodules',
+               'after:about',
+               array(
+                       'Modules' => 'index'
+               ),
+               array(
+                       'access' => 'user,group',
+                       'icon' => 'EXT:aboutmodules/ext_icon.gif',
+                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
+               )
+       );
 }
 ?>
\ No newline at end of file
index fea771d..8a04da2 100755 (executable)
@@ -4,12 +4,19 @@ if (!defined('TYPO3_MODE')) {
 }
 if (TYPO3_MODE === 'BE') {
        // Module Admin > Backend Users
-       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'tools', 'tx_Beuser', 'top', array(
-               'BackendUser' => 'index, addToCompareList, removeFromCompareList, compare, online, terminateBackendUserSession'
-       ), array(
-               'access' => 'user,group',
-               'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
-               'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
-       ));
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               'TYPO3.CMS.' . $_EXTKEY,
+               'tools',
+               'tx_Beuser',
+               'top',
+               array(
+                       'BackendUser' => 'index, addToCompareList, removeFromCompareList, compare, online, terminateBackendUserSession'
+               ),
+               array(
+                       'access' => 'user,group',
+                       'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
+                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'
+               )
+       );
 }
 ?>
\ No newline at end of file
index 18c0410..c7ed434 100644 (file)
@@ -25,7 +25,7 @@ $TCA['tx_extensionmanager_domain_model_repository'] = array(
 
 if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
-               $_EXTKEY,
+               'TYPO3.CMS.' . $_EXTKEY,
                'tools',
                'extensionmanager', '', array(
                        'List' => 'index,ter,showAllVersions',
@@ -38,7 +38,7 @@ if (TYPO3_MODE === 'BE') {
                array(
                        'access' => 'user,group',
                        'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
-                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml'
+                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml',
                )
        );
 }
index 4c3fb20..ddcaad6 100644 (file)
@@ -3,13 +3,19 @@ if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
 if (TYPO3_MODE === 'BE') {
-       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'tools', 'txreportsM1', '', array(
-               'Report' => 'index,detail'
-       ), array(
-               'access' => 'admin',
-               'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/moduleicon.gif',
-               'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf'
-       ));
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               'TYPO3.CMS.' . $_EXTKEY,
+               'tools',
+               'txreportsM1',
+               '',
+               array(
+                       'Report' => 'index,detail'
+               ), array(
+                       'access' => 'admin',
+                       'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/moduleicon.gif',
+                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf'
+               )
+       );
        $statusReport = array(
                'title' => 'LLL:EXT:reports/reports/locallang.xml:status_report_title',
                'description' => 'LLL:EXT:reports/reports/locallang.xml:status_report_description',
index 360efe2..8abcaa0 100755 (executable)
@@ -4,12 +4,19 @@ if (!defined('TYPO3_MODE')) {
 }
 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        // Module Web->View
-       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'web', 'view', 'after:layout', array(
-               'View' => 'show'
-       ), array(
-               'icon' => 'EXT:viewpage/ext_icon.gif',
-               'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
-               'access' => 'user,group'
-       ));
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               'TYPO3.CMS.' . $_EXTKEY,
+               'web',
+               'view',
+               'after:layout',
+               array(
+                       'View' => 'show'
+               ),
+               array(
+                       'icon' => 'EXT:viewpage/ext_icon.gif',
+                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
+                       'access' => 'user,group'
+               )
+       );
 }
 ?>
\ No newline at end of file