-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
30 lines (21 loc) · 922 Bytes
/
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
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
$boot = function () {
if (version_compare(TYPO3_version, '10.0.0', '<')) {
$extConf = isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['w_chromephp']) ? unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['w_chromephp']) : [];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['w_chromephp'] = $extConf;
}
else {
$extConf = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['w_chromephp'];
}
// include ChromePHP lib
require_once (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('w_chromephp') . 'Private/PHP/ChromePhp/ChromePhp.php');
// include short call functions
if ($extConf['includeShorthands']) {
require_once (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('w_chromephp') . 'Private/PHP/shorthands.php');
}
};
$boot();
unset($boot);