[BUGFIX] Improve styling of TS-Objectbrowsers edit view
[Packages/TYPO3.CMS.git] / typo3 / sysext / tstemplate / ext_tables.php
index 8f4b38c..cc5dcc9 100644 (file)
@@ -1,44 +1,51 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
+defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE') {
-       $extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY);
-
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
                'web',
                'ts',
                '',
-               $extensionPath . 'ts/'
+               'EXT:tstemplate/Modules/TsTemplate/',
+               array(
+                       'script' => '_DISPATCH',
+                       'access' => 'admin',
+                       'name' => 'web_ts',
+                       'labels' => array(
+                               'tabs_images' => array(
+                                       'tab' => 'EXT:tstemplate/Resources/Public/Icons/module-tstemplate.svg',
+                               ),
+                               'll_ref' => 'LLL:EXT:tstemplate/Resources/Private/Language/locallang_mod.xlf',
+                       ),
+               )
        );
 
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_ts',
-               'TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateConstantEditorModuleFunctionController',
-               $extensionPath . 'Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php',
-               'LLL:EXT:tstemplate/ts/locallang.xlf:constantEditor'
+               \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController::class,
+               NULL,
+               'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:constantEditor'
        );
 
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_ts',
-               'TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateInformationModuleFunctionController',
-               $extensionPath . 'Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php',
-               'LLL:EXT:tstemplate/ts/locallang.xlf:infoModify'
+               \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::class,
+               NULL,
+               'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:infoModify'
        );
 
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_ts',
-               'TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateObjectBrowserModuleFunctionController',
-               $extensionPath  . 'Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php',
-               'LLL:EXT:tstemplate/ts/locallang.xlf:objectBrowser'
+               \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController::class,
+               NULL,
+               'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:objectBrowser'
        );
 
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_ts',
-               'TYPO3\\CMS\\Tstemplate\\Controller\\TemplateAnalyzerModuleFunctionController',
-               $extensionPath . 'Classes/Controller/TemplateAnalyzerModuleFunctionController.php',
-               'LLL:EXT:tstemplate/ts/locallang.xlf:templateAnalyzer'
+               \TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController::class,
+               NULL,
+               'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:templateAnalyzer'
        );
 
 }