[TASK] Add type converter for core types like Enumeration
[Packages/TYPO3.CMS.git] / typo3 / sysext / aboutmodules / ext_tables.php
index 499fb94..1493709 100755 (executable)
@@ -1,5 +1,21 @@
 <?php
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
-
-if (TYPO3_MODE=='BE')  t3lib_extMgm::addModule('help','aboutmodules','after:about',t3lib_extMgm::extPath($_EXTKEY).'mod/');
-?>
\ No newline at end of file
+if (!defined('TYPO3_MODE')) {
+       die('Access denied.');
+}
+// 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(
+               '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'
+               )
+       );
+}