[TASK] Remove conf.php from ext:recordlist 72/35072/3
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 5 Dec 2014 16:14:42 +0000 (17:14 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 7 Dec 2014 10:14:55 +0000 (11:14 +0100)
Resolves: #63608
Releases: master
Change-Id: I0b0cb2919a8d4b8b3e709b5956977a3c8d328758
Reviewed-on: http://review.typo3.org/35072
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/recordlist/Classes/RecordList.php
typo3/sysext/recordlist/ext_tables.php
typo3/sysext/recordlist/mod1/conf.php [deleted file]

index eb0f193..bc80c5b 100644 (file)
@@ -133,6 +133,7 @@ class RecordList {
         * Module configuration
         *
         * @var array
+        * @deprecated since TYPO3 CMS 7, will be removed in CMS 8.
         */
        public $MCONF = array();
 
@@ -158,11 +159,17 @@ class RecordList {
        public $content;
 
        /**
+        * The name of the module
+        *
+        * @var string
+        */
+       protected $moduleName = 'web_list';
+
+       /**
         * Constructor
         */
        public function __construct() {
                $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_mod_web_list.xlf');
-               $GLOBALS['BE_USER']->modAccess($GLOBALS['MCONF'], 1);
        }
 
        /**
@@ -171,8 +178,6 @@ class RecordList {
         * @return void
         */
        public function init() {
-               // Setting module configuration / page select clause
-               $this->MCONF = $GLOBALS['MCONF'];
                $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
                // GPvars:
                $this->id = (int)GeneralUtility::_GP('id');
@@ -203,9 +208,9 @@ class RecordList {
                        'localization' => ''
                );
                // Loading module configuration:
-               $this->modTSconfig = BackendUtility::getModTSconfig($this->id, 'mod.' . $this->MCONF['name']);
+               $this->modTSconfig = BackendUtility::getModTSconfig($this->id, 'mod.' . $this->moduleName);
                // Clean up settings:
-               $this->MOD_SETTINGS = BackendUtility::getModuleData($this->MOD_MENU, GeneralUtility::_GP('SET'), $this->MCONF['name']);
+               $this->MOD_SETTINGS = BackendUtility::getModuleData($this->MOD_MENU, GeneralUtility::_GP('SET'), $this->moduleName);
        }
 
        /**
index 27df54f..9db5c09 100644 (file)
@@ -10,7 +10,18 @@ if (TYPO3_MODE === 'BE') {
                'web',
                'list',
                '',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/'
+               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/',
+               array(
+                       'script' => '_DISPATCH',
+                       'access' => 'user,group',
+                       'name' => 'web_list',
+                       'labels' => array(
+                               'tabs_images' => array(
+                                       'tab' => '../Resources/Public/Icons/module-list.png',
+                               ),
+                               'll_ref' => 'LLL:EXT:lang/locallang_mod_web_list.xlf',
+                       ),
+               )
        );
 
        // Register element browser wizard
diff --git a/typo3/sysext/recordlist/mod1/conf.php b/typo3/sysext/recordlist/mod1/conf.php
deleted file mode 100644 (file)
index 174e144..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-// DO NOT REMOVE OR CHANGE THESE 2 LINES:
-$MCONF['name'] = 'web_list';
-$MCONF['script'] = '_DISPATCH';
-$MCONF['access'] = 'user,group';
-$MLANG['default']['tabs_images']['tab'] = '../Resources/Public/Icons/module-list.png';
-$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_web_list.xlf';