Skip to content

Commit

Permalink
#97 - TYPO3 compatibility version fix, another TYPO3 9 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bednee committed Dec 8, 2019
1 parent 1f25354 commit f09226d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions Classes/Integration/CoolUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,17 @@ private static function extractArraysFromParams($params)
if (empty($params)) {
return Array();
}
foreach ($params as $k => $v) $params[$k] = $k . '=' . rawurlencode($v);
$alreadyExtracted = [];
foreach ($params as $k => $v) {
if (is_array($v)) {
$alreadyExtracted[$k] = $v;
} else {
$params[$k] = $k . '=' . rawurlencode($v);
}
}
$qs = implode('&', $params);
parse_str($qs, $output);
return $output;
return array_merge($output, $alreadyExtracted);
}

private static function isBEUserLoggedIn()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"type": "typo3-cms-extension",
"require": {
"typo3/cms-core": ">= 8.7.0, <= 9.9.99"
"typo3/cms-core": "^9.5"
},
"replace": {
"cooluri": "self.version",
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'author_email' => '[email protected]',
'constraints' => array(
'depends' => array(
'typo3' => '8.7.0-9.9.99',
'typo3' => '9.5.0-9.9.99',
),
),
);

0 comments on commit f09226d

Please sign in to comment.