[BUGFIX] ConfigurationUtility loses extension key 00/17600/2
authorFrancois Suter <francois@typo3.org>
Sat, 19 Jan 2013 20:56:44 +0000 (21:56 +0100)
committerFrancois Suter <francois@typo3.org>
Sat, 19 Jan 2013 21:02:57 +0000 (22:02 +0100)
The EM's ConfigurationUtility::getCurrentConfiguration() method looks for
the extension key at the wrong place. Rather than using the key
it receives as a parameter, it tries to get it from
$GLOBALS['TYPO3_LOADED_EXT'] where it does not exist.

Releases: 6.0, 6.1
Resolves: #44665
Change-Id: Ifc18dcc68eee7eb2b0d21ebdbec48e868c6b7d4d
Reviewed-on: https://review.typo3.org/17600
Reviewed-by: Francois Suter
Tested-by: Francois Suter
typo3/sysext/extensionmanager/Classes/Utility/ConfigurationUtility.php

index 2df8d39..f412443 100644 (file)
@@ -93,7 +93,7 @@ class ConfigurationUtility implements \TYPO3\CMS\Core\SingletonInterface {
        public function getCurrentConfiguration($extensionKey) {
                $extension = $GLOBALS['TYPO3_LOADED_EXT'][$extensionKey];
                $defaultConfig = $this->configurationItemRepository->createArrayFromConstants(\TYPO3\CMS\Core\Utility\GeneralUtility::getUrl(PATH_site . $extension['siteRelPath'] . '/ext_conf_template.txt'), $extension);
-               $currentExtensionConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extension['key']]);
+               $currentExtensionConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extensionKey]);
                $currentExtensionConfig = is_array($currentExtensionConfig) ? $currentExtensionConfig : array();
                $currentFullConfiguration = \TYPO3\CMS\Core\Utility\GeneralUtility::array_merge_recursive_overrule($defaultConfig, $currentExtensionConfig);
                return $currentFullConfiguration;