Commit 25d65b67 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Make getExtensionConfiguration return empty array on failure

parent f5f27431
......@@ -42,12 +42,6 @@ class ExtensionUtility {
* @return array
*/
public static function getExtensionConfiguration(): array {
if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '<')) {
return \unserialize(
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['sg_routes'], ['allowed_classes' => FALSE]
);
} else {
return $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_routes'];
}
return $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_routes'] ?? [];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment