Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
[BUGFIX] Fix TYPO3_CONF_VARS tests (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
TehTux committed Apr 29, 2020
1 parent 91d6780 commit a42b8d2
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,19 @@ protected function getValueForKeyPath(array $keyPath)
switch ($key) {
case 'GLOBALS':
$value = $GLOBALS;

// decode TYPO3_CONF_VARS->EXT->extConf children if requested
if ($keyPath[0] == 'TYPO3_CONF_VARS' && $keyPath[1] == 'EXT' && $keyPath[2] == 'extConf' && $keyPath[3]) {
$value = clone $GLOBALS;
$serializedValue = $value[$keyPath[0]][$keyPath[1]][$keyPath[2]][$keyPath[3]];
$value[$keyPath[0]][$keyPath[1]][$keyPath[2]][$keyPath[3]] = unserialize($serializedValue);
$serializedValue = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$keyPath[3]];
$value = array(
'TYPO3_CONF_VARS' => array(
'EXT' => array(
'extConf' => array(
$keyPath[3] => unserialize($serializedValue),
),
),
),
);
}

break;

case '_POST':
Expand Down

0 comments on commit a42b8d2

Please sign in to comment.