-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
26 lines (23 loc) · 938 Bytes
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use Xima\XimaTypo3Mailcatcher\Controller\BackendController;
if (isset($GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport']) && $GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport'] === 'mbox') {
$version = VersionNumberUtility::convertVersionStringToArray(VersionNumberUtility::getNumericTypo3Version());
$controllerName = BackendController::class;
if ($version['version_main'] < 12) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'XimaTypo3Mailcatcher',
'system',
'mails',
'',
[
$controllerName => 'index',
],
[
'access' => 'user,group',
'iconIdentifier' => 'module-mailcatcher',
'labels' => 'LLL:EXT:xima_typo3_mailcatcher/Resources/Private/Language/locallang_mod.xlf',
]
);
}
}