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

Change-Id: Iec3a48a6667b51a74979cd41a79e6b7d872a561d
Fixes: #40333
Relates: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14197
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/workspaces/ext_tables.php

index 7d710e0..f38783e 100644 (file)
@@ -5,16 +5,23 @@ if (!defined('TYPO3_MODE')) {
 // avoid that this block is loaded in the frontend or within the upgrade-wizards
 if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        /** Registers a Backend Module */
-       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'web', 'workspaces', 'before:info', array(
-               // An array holding the controller-action-combinations that are accessible
-               'Review' => 'index,fullIndex,singleIndex',
-               'Preview' => 'index,newPage'
-       ), array(
-               'access' => 'user,group',
-               'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif',
-               'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml',
-               'navigationComponentId' => 'typo3-pagetree'
-       ));
+       \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+               'TYPO3.CMS.' . $_EXTKEY,
+               'web',
+               'workspaces',
+               'before:info',
+               array(
+                               // An array holding the controller-action-combinations that are accessible
+                       'Review' => 'index,fullIndex,singleIndex',
+                       'Preview' => 'index,newPage'
+               ),
+               array(
+                       'access' => 'user,group',
+                       'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif',
+                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml',
+                       'navigationComponentId' => 'typo3-pagetree'
+               )
+       );
        // register ExtDirect
        \TYPO3\CMS\Core\Extension\ExtensionManager::registerExtDirectComponent('TYPO3.Workspaces.ExtDirect', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Classes/ExtDirect/Server.php:TYPO3\\CMS\\Workspaces\\ExtDirect\\ExtDirectServer', 'web_WorkspacesWorkspaces', 'user,group');
        \TYPO3\CMS\Core\Extension\ExtensionManager::registerExtDirectComponent('TYPO3.Workspaces.ExtDirectActions', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Classes/ExtDirect/ActionHandler.php:TYPO3\\CMS\\Workspaces\\ExtDirect\\ActionHandler', 'web_WorkspacesWorkspaces', 'user,group');