[BUGFIX] Fix wrong array access to $emConf['version'] 28/59328/2
authorStanislas Rolland <typo3@sjbr.ca>
Fri, 4 Jan 2019 17:10:14 +0000 (12:10 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Fri, 4 Jan 2019 17:11:09 +0000 (18:11 +0100)
Change-Id: Ia29966e7018f7e737fb46f3a95e480fc58cd4fe1
Resolves: #87330
Reviewed-on: https://review.typo3.org/59328
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
ext_localconf.php

index 29887e2..1b110a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Resolves #87243: Constant editor fails with class not found exception
        * Resolves #87329: Fix non-UTF-8 character in ext_emconf
+       * Resolves #87330: Fix wrong array access to $emConf['version']
 
 2018-12-19  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
index 63cc257..a056944 100644 (file)
@@ -114,8 +114,8 @@ call_user_func(
                 'key' => $extKey,
                 'siteRelPath' => \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($extKey)),
             ]);
-        $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extKey]['version'] = $emConf[$extKey]['version'];
-        $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extKey]['constraints'] = $emConf[$extKey]['constraints'];
+        $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extKey]['version'] = $emConf['version'];
+        $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extKey]['constraints'] = $emConf['constraints'];
         // Configure translation of suggestions labels
         \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:'
             . $extKey . '/Configuration/PageTSconfig/Suggest.tsconfig">');