[TASK] EXT:taskcenter Uniform extension directory structure 82/41782/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 21 Jul 2015 15:12:07 +0000 (17:12 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 21 Jul 2015 16:47:22 +0000 (18:47 +0200)
Resolves: #68432
Releases: master
Change-Id: I677375f761a170e6c88fae91584f5bf83c502cbf
Reviewed-on: http://review.typo3.org/41782
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/taskcenter/Modules/Taskcenter/index.php [new file with mode: 0644]
typo3/sysext/taskcenter/ext_tables.php
typo3/sysext/taskcenter/task/clear.gif [deleted file]
typo3/sysext/taskcenter/task/index.php [deleted file]

diff --git a/typo3/sysext/taskcenter/Modules/Taskcenter/index.php b/typo3/sysext/taskcenter/Modules/Taskcenter/index.php
new file mode 100644 (file)
index 0000000..a641733
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Taskcenter\Controller\TaskModuleController::class);
+$GLOBALS['SOBE']->main();
+$GLOBALS['SOBE']->printContent();
index 5d9d0e5..182eac7 100644 (file)
@@ -4,20 +4,20 @@ defined('TYPO3_MODE') or die();
 if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'tools_txtaskcenterM1',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'task/'
+               'EXT:taskcenter/Modules/Taskcenter/'
        );
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
                'user',
                'task',
                'top',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'task/',
+               'EXT:taskcenter/Modules/Taskcenter/',
                array(
                        'script' => '_DISPATCH',
                        'access' => 'group,user',
                        'name' => 'user_task',
                        'labels' => array(
                                'tabs_images' => array(
-                                       'tab' => '../Resources/Public/Icons/module-taskcenter.svg',
+                                       'tab' => 'EXT:taskcenter/Resources/Public/Icons/module-taskcenter.svg',
                                ),
                                'll_ref' => 'LLL:EXT:taskcenter/Resources/Private/Language/locallang_mod.xlf',
                        ),
diff --git a/typo3/sysext/taskcenter/task/clear.gif b/typo3/sysext/taskcenter/task/clear.gif
deleted file mode 100644 (file)
index e1d2d83..0000000
Binary files a/typo3/sysext/taskcenter/task/clear.gif and /dev/null differ
diff --git a/typo3/sysext/taskcenter/task/index.php b/typo3/sysext/taskcenter/task/index.php
deleted file mode 100644 (file)
index a641733..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Taskcenter\Controller\TaskModuleController::class);
-$GLOBALS['SOBE']->main();
-$GLOBALS['SOBE']->printContent();