ext_localconf.php 966 Bytes
Newer Older
1 2
<?php

3
if (!\defined('TYPO3_MODE')) {
4 5 6
	die('Access denied.');
}

7
// new cache table
8
if (!\is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['lfeditor_select_options_cache'])) {
9
	$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['lfeditor_select_options_cache'] = array();
10
}
11

12
$extConf = \SGalinski\Lfeditor\Utility\ExtensionUtility::getExtensionConfiguration();
13 14 15 16 17 18
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '<')) {
	$pathSite = PATH_site;
} else {
	$pathSite = \TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/';
}

19 20
if (
	$extConf['pathAdditionalConfiguration'] !== 'typo3conf/AdditionalConfiguration.php' &&
21
	\is_file($pathSite . $extConf['pathAdditionalConfiguration'])
22 23
) {
	// Include the additional LFEditor configuration file if not set to AdditionalConfiguration.php
24
	include_once $pathSite . $extConf['pathAdditionalConfiguration'];
25 26
}
unset($extConf);