Skip to content

Commit

Permalink
[TASK] Allow usage of content-defender dev-versions not limited to main
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-appelt committed Nov 9, 2024
1 parent f8a3c91 commit c8e5f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$packageManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Package\PackageManager::class);
if ($packageManager->isPackageActive('content_defender')) {
$contentDefenderVersion = $packageManager->getPackage('content_defender')->getPackageMetaData()->getVersion();
if (version_compare($contentDefenderVersion, '3.1.0', '>=') || $contentDefenderVersion === 'dev-main') {
if (version_compare($contentDefenderVersion, '3.1.0', '>=') || substr($contentDefenderVersion, 0, 4) === 'dev-') {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['content_defender']['ColumnConfigurationManipulationHook']['tx_container'] =
\B13\Container\ContentDefender\Hooks\ColumnConfigurationManipulationHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\IchHabRecht\ContentDefender\Hooks\DatamapDataHandlerHook::class] = [
Expand Down

0 comments on commit c8e5f03

Please sign in to comment.