[BUGFIX] Use proper import statement in ErrorController
[Packages/TYPO3.CMS.git] / typo3 / sysext / taskcenter / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index bdae044..7bac1c9
@@ -1,13 +1,16 @@
 <?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE == 'BE') {
-       t3lib_extMgm::addModulePath('tools_txtaskcenterM1', t3lib_extMgm::extPath($_EXTKEY) . 'task/');
-       t3lib_extMgm::addModule('user','task', 'top', t3lib_extMgm::extPath($_EXTKEY) . 'task/');
-
-       $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['Taskcenter::saveCollapseState']      = 'EXT:taskcenter/classes/class.tx_taskcenter_status.php:tx_taskcenter_status->saveCollapseState';
-       $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['Taskcenter::saveSortingState']       = 'EXT:taskcenter/classes/class.tx_taskcenter_status.php:tx_taskcenter_status->saveSortingState';
-}
-?>
\ No newline at end of file
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+    'user',
+    'task',
+    'top',
+    '',
+    [
+        'routeTarget' => \TYPO3\CMS\Taskcenter\Controller\TaskModuleController::class . '::mainAction',
+        'access' => 'group,user',
+        'name' => 'user_task',
+        'icon' => 'EXT:taskcenter/Resources/Public/Icons/module-taskcenter.svg',
+        'labels' => 'LLL:EXT:taskcenter/Resources/Private/Language/locallang_mod.xlf'
+    ]
+);