[TASK] Move modAccess and language include in EXT:taskcenter 15/28315/3
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 12 Mar 2014 18:56:30 +0000 (19:56 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 13 Mar 2014 22:19:34 +0000 (23:19 +0100)
Resolves: #56838
Releases: 6.2
Change-Id: Iac44b90bc96529458a2e452e47cb5548600464b0
Reviewed-on: https://review.typo3.org/28315
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/taskcenter/task/index.php

index 41c7b93..ed97732 100644 (file)
@@ -42,6 +42,8 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
         * @return void
         */
        public function __construct() {
+               $GLOBALS['LANG']->includeLLFile('EXT:taskcenter/task/locallang.xlf');
+               $GLOBALS['BE_USER']->modAccess($GLOBALS['MCONF'], TRUE);
                parent::init();
                // Initialize document
                $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
index 1b34341..4e24184 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
-$LANG->includeLLFile('EXT:taskcenter/task/locallang.xlf');
-$BE_USER->modAccess($MCONF, 1);
 
-// Make instance:
 $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Taskcenter\\Controller\\TaskModuleController');
 // Include files?
 foreach ($SOBE->include_once as $INC_FILE) {