[TASK] Remove conf.php from ext:taskcenter
[Packages/TYPO3.CMS.git] / typo3 / sysext / taskcenter / Classes / Controller / TaskModuleController.php
index ec76754..b54012d 100644 (file)
@@ -30,6 +30,13 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
         */
        protected $pageinfo;
 
+       /**
+        * The name of the module
+        *
+        * @var string
+        */
+       protected $moduleName = 'user_task';
+
        /**
         * Initializes the Module
         *
@@ -37,7 +44,9 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
         */
        public function __construct() {
                $GLOBALS['LANG']->includeLLFile('EXT:taskcenter/task/locallang.xlf');
-               $GLOBALS['BE_USER']->modAccess($GLOBALS['MCONF'], TRUE);
+               $this->MCONF = array(
+                       'name' => $this->moduleName
+               );
                parent::init();
                // Initialize document
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
@@ -320,7 +329,7 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                );
                // Shortcut
                if ($GLOBALS['BE_USER']->mayMakeShortcut()) {
-                       $buttons['shortcut'] = $this->doc->makeShortcutIcon('', 'function', $this->MCONF['name']);
+                       $buttons['shortcut'] = $this->doc->makeShortcutIcon('', 'function', $this->moduleName);
                }
                return $buttons;
        }