Skip to content

Commit

Permalink
fix: hide module if mbox is not set in v12
Browse files Browse the repository at this point in the history
  • Loading branch information
maikschneider committed May 27, 2024
1 parent 0d262f6 commit 5c3733b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Configuration/Backend/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

use Xima\XimaTypo3Mailcatcher\Controller\BackendController;

return [
$isMbox = isset($GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport']) && $GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport'] === 'mbox';

return $isMbox ? [
'system_mails' => [
'parent' => 'system',
'position' => [],
Expand All @@ -17,4 +19,4 @@
],
],
],
];
] : [];

0 comments on commit 5c3733b

Please sign in to comment.