-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_localconf.php
44 lines (37 loc) · 1.61 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
defined('TYPO3') || die('Access denied.');
call_user_func(function ($extensionKey): void {
if (!defined('DIV2007_EXT')) {
define('DIV2007_EXT', $extensionKey);
}
$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])
) {
$storeArray = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey];
} else {
unset($storeArray);
}
if (isset($extensionConfiguration) && is_array($extensionConfiguration)) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey] = $extensionConfiguration;
if (isset($storeArray) && is_array($storeArray)) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey] = array_merge($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$extensionKey], $storeArray);
}
}
// constants for the TCA fields
if (!defined('DIV2007_LANGUAGE_LGL')) {
define('DIV2007_LANGUAGE_LGL', 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.');
}
if (!defined('DIV2007_LANGUAGE_PATH')) {
define('DIV2007_LANGUAGE_PATH', 'LLL:EXT:core/Resources/Private/Language/');
}
if (!defined('DIV2007_LANGUAGE_SUBPATH')) {
define('DIV2007_LANGUAGE_SUBPATH', '/Resources/Private/Language/');
}
if (!defined('DIV2007_ICONS_SUBPATH')) {
define('DIV2007_ICONS_SUBPATH', 'Resources/Public/Images/Icons/');
}
}, 'div2007');