Skip to content

Commit 849fae5

Browse files
committed
[TASK] Remove superfluous Hook
The TCEmainHook.php was intentionally added allowing the override of the cmdMap array inside the DataHandler. As this was in older versions bad practice and the DataHandler hardening in v13 enforced `deepltranslate-core` introducing an own translation command as best practice, the hook allowing `localization` inside the cmdMap array is superfluous.
1 parent 3df2511 commit 849fae5

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

Classes/Hooks/TCEmainHook.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

ext_localconf.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][\WebVision\Deepltranslate\Core\Hooks\UsageProcessAfterFinishHook::class]
2020
= \WebVision\Deepltranslate\Core\Hooks\UsageProcessAfterFinishHook::class;
2121

22-
//hook to checkModifyAccessList for editors
23-
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList']['deepl']
24-
= \WebVision\Deepltranslate\Core\Hooks\TCEmainHook::class;
25-
2622
//xclass localizationcontroller for localizeRecords() and process() action
2723
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Backend\Controller\Page\LocalizationController::class] = [
2824
'className' => \WebVision\Deepltranslate\Core\Override\LocalizationController::class,

0 commit comments

Comments
 (0)