Skip to content

Commit

Permalink
[TASK] Remove vendor name from extensionName in registerModule
Browse files Browse the repository at this point in the history
With deprecation #87550 the $extensionName argument of
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule
should no longer be prepended with the vendor name.
Therefore it should be removed in file ext_tables.php.
registerModule might stop working in TYPO3 v 11.0.

Resolves: josefglatz#16
  • Loading branch information
helmutstrasser committed Oct 25, 2023
1 parent a07a9a4 commit d9ff052
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@
}

if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($typo3Version) >= 11000000) {
$controller = \JosefGlatz\Iconcheck\Controller\IconcheckController::class;
$extensionName = 'iconcheck';
$controller = \JosefGlatz\Iconcheck\Controller\IconcheckController::class;
} else {
$controller = 'Iconcheck';
$extensionName = 'JosefGlatz.iconcheck';
$controller = 'Iconcheck';
}

// Register backend module if it is not disabled
if (!$isDisableModule) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'JosefGlatz.iconcheck',
$extensionName,
'help',
'tx_iconcheck_m1',
'',
Expand Down

1 comment on commit d9ff052

@helmutstrasser
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit is meant to create a new tag version between 2.2.1 and 3.0.0. to serve TYPO3 v11.0!

Please sign in to comment.