[BUGFIX] Re-read extListArray in em at runtime
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 25 Jul 2012 09:40:36 +0000 (11:40 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Wed, 25 Jul 2012 18:26:26 +0000 (20:26 +0200)
The introduction package loads multiple extensions in one go through the
em API enableExtension(). The refreshGlobalExtList() method should reset
the extListArray to new values written to LocalConfiguration to
recognize if many extensions are loaded in one request.

Change-Id: Ieb4481e3d04a4407ba31f3c64f71c5fb5b03e344
Resolves: #39237
Related: #39112
Releases: 6.0
Reviewed-on: http://review.typo3.org/13038
Reviewed-by: Wouter Wolters
Reviewed-by: Georg Ringer
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/em/classes/tools/class.tx_em_tools.php

index 79e2a42..6e36bc7 100644 (file)
@@ -135,6 +135,11 @@ final class tx_em_Tools {
         * @return void
         */
        public static function refreshGlobalExtList() {
         * @return void
         */
        public static function refreshGlobalExtList() {
+                       // Set new extlist / extlistArray for extension load changes at runtime
+               $localConfiguration = t3lib_Configuration::getLocalConfiguration();
+               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = $localConfiguration['EXT']['extList'];
+               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extListArray'] = $localConfiguration['EXT']['extListArray'];
+
                Typo3_Bootstrap::getInstance()
                        ->populateTypo3LoadedExtGlobal(FALSE)
                        ->loadAdditionalConfigurationFromExtensions(FALSE);
                Typo3_Bootstrap::getInstance()
                        ->populateTypo3LoadedExtGlobal(FALSE)
                        ->loadAdditionalConfigurationFromExtensions(FALSE);