Skip to content

Commit d1e42ed

Browse files
committed
[TASK] Remove outdated version check for EXT:content_defender
content_defender version 3.1.0 is pretty old and supported TYPO3 8, 9 and 10. There is no need anymore to check for this version.
1 parent a3f9aef commit d1e42ed

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

ext_localconf.php

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,14 @@
3333
// EXT:content_defender
3434
$packageManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Package\PackageManager::class);
3535
if ($packageManager->isPackageActive('content_defender')) {
36-
$contentDefenderVersion = $packageManager->getPackage('content_defender')->getPackageMetaData()->getVersion();
37-
if (version_compare($contentDefenderVersion, '3.1.0', '>=') || $contentDefenderVersion === 'dev-main') {
38-
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['content_defender']['ColumnConfigurationManipulationHook']['tx_container'] =
39-
\B13\Container\ContentDefender\Hooks\ColumnConfigurationManipulationHook::class;
40-
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\IchHabRecht\ContentDefender\Hooks\DatamapDataHandlerHook::class] = [
41-
'className' => \B13\Container\ContentDefender\Xclasses\DatamapHook::class,
42-
];
43-
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\IchHabRecht\ContentDefender\Hooks\CmdmapDataHandlerHook::class] = [
44-
'className' => \B13\Container\ContentDefender\Xclasses\CommandMapHook::class,
45-
];
46-
}
36+
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['content_defender']['ColumnConfigurationManipulationHook']['tx_container'] =
37+
\B13\Container\ContentDefender\Hooks\ColumnConfigurationManipulationHook::class;
38+
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\IchHabRecht\ContentDefender\Hooks\DatamapDataHandlerHook::class] = [
39+
'className' => \B13\Container\ContentDefender\Xclasses\DatamapHook::class,
40+
];
41+
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\IchHabRecht\ContentDefender\Hooks\CmdmapDataHandlerHook::class] = [
42+
'className' => \B13\Container\ContentDefender\Xclasses\CommandMapHook::class,
43+
];
4744
}
4845

4946
// set our hooks at the beginning of Datamap Hooks

0 commit comments

Comments
 (0)