-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_localconf.php
28 lines (24 loc) · 1.08 KB
/
ext_localconf.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
27
28
<?php
defined('TYPO3') || die('Access denied.');
call_user_func(function ($extensionKey): void {
$extensionConfiguration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get($extensionKey);
if (
isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey]) &&
is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey])
) {
$tmpArray = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey];
} elseif (isset($tmpArray)) {
unset($tmpArray);
}
if (isset($extensionConfiguration) && is_array($extensionConfiguration)) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey] = $extensionConfiguration;
if (isset($tmpArray) && is_array($tmpArray)) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey] =
array_merge($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey], $tmpArray);
}
} elseif (!isset($tmpArray)) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey] = [];
}
}, 'tt_board');