[BUGFIX] Remove references to extListArray 95/24795/2
authorXavier Perseguers <xavier@typo3.org>
Tue, 15 Oct 2013 13:20:48 +0000 (15:20 +0200)
committerThomas Maroschik <tmaroschik@dfau.de>
Tue, 15 Oct 2013 15:24:38 +0000 (17:24 +0200)
Fixes: #52849
Releases: 6.2
Change-Id: I1308ffec460b7d4a61456564721206c7e99d5a99
Reviewed-on: https://review.typo3.org/24795
Reviewed-by: Wouter Wolters
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
typo3/sysext/core/Tests/Unit/Core/ClassLoaderTest.php
typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php

index 9a0d2bd..5150382 100644 (file)
@@ -108,7 +108,6 @@ class ClassLoaderTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $GLOBALS['TYPO3_LOADED_EXT'][$extKey] = array(
                        'siteRelPath' => $relPath
                );
-               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extListArray'][] = $extKey;
                $this->fakedExtensions[] = $extKey;
                \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::clearExtensionKeyMap();
                return $extKey;
index d11cd0e..f70562d 100644 (file)
@@ -243,7 +243,6 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
        public function extPathThrowsExceptionIfExtensionIsNotLoadedAndTypo3LoadedExtensionsIsEmpty() {
                unset($GLOBALS['TYPO3_LOADED_EXT']);
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['requiredExt'] = '';
-               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = '';
                ExtensionManagementUtility::extPath('bar');
        }
 
@@ -254,7 +253,6 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
                $this->setExpectedException('BadFunctionCallException', '', 1365429656);
                unset($GLOBALS['TYPO3_LOADED_EXT']);
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['requiredExt'] = 'foo';
-               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = '';
                ExtensionManagementUtility::extPath('foo');
        }
 
@@ -265,7 +263,6 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
                $this->setExpectedException('BadFunctionCallException', '', 1365429656);
                unset($GLOBALS['TYPO3_LOADED_EXT']);
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['requiredExt'] = '';
-               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extListArray'] = array('foo');
                ExtensionManagementUtility::extPath('foo');
        }
 
index bfb2ec9..89245ec 100644 (file)
@@ -258,12 +258,6 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
         */
        public function reloadCaches() {
                \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::removeCacheFiles();
-               // Set new extlist / extlistArray for extension load changes at runtime
-               /** @var $configurationManager \TYPO3\CMS\Core\Configuration\ConfigurationManager */
-               $configurationManager = $this->objectManager->get('TYPO3\\CMS\\Core\\Configuration\\ConfigurationManager');
-               $localConfiguration = $configurationManager->getLocalConfiguration();
-               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extListArray'] = $localConfiguration['EXT']['extListArray'];
-               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = implode(',', $GLOBALS['TYPO3_CONF_VARS']['EXT']['extListArray']);
                \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->reloadTypo3LoadedExtAndClassLoaderAndExtLocalconf();
        }