[TASK] Install tool: Sort "All configuration" sections 91/23791/4
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Sep 2013 15:12:18 +0000 (17:12 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 12 Sep 2013 15:23:05 +0000 (17:23 +0200)
Order the sections in all configuration alphabetically.

Change-Id: I2096d2b0d8892e93a5740d0ad2b7dee1ddceb93e
Resolves: #47740
Releases: 6.2
Reviewed-on: https://review.typo3.org/23791
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/install/Classes/Controller/Action/Tool/AllConfiguration.php

index 2e433d6..e9f12b0 100644 (file)
@@ -57,10 +57,12 @@ class AllConfiguration extends Action\AbstractAction implements Action\ActionInt
         */
        protected function setUpConfigurationData() {
                $data = array();
-               foreach ($GLOBALS['TYPO3_CONF_VARS'] as $sectionName => $sectionData) {
+               $typo3ConfVars = array_keys($GLOBALS['TYPO3_CONF_VARS']);
+               sort($typo3ConfVars);
+               foreach ($typo3ConfVars as $sectionName) {
                        $data[$sectionName] = array();
 
-                       foreach ($sectionData as $key => $value) {
+                       foreach ($GLOBALS['TYPO3_CONF_VARS'][$sectionName] as $key => $value) {
                                if (isset($GLOBALS['TYPO3_CONF_VARS_extensionAdded'][$sectionName][$key])) {
                                        // Don't allow editing stuff which is added by extensions
                                        // Make sure we fix potentially duplicated entries from older setups