Initial commit - Typo3 11.5.41
This commit is contained in:
23
typo3conf/ext/lfeditor/ext_localconf.php
Normal file
23
typo3conf/ext/lfeditor/ext_localconf.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
if (!\defined('TYPO3')) {
|
||||
die('Access denied.');
|
||||
}
|
||||
|
||||
// new cache table
|
||||
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['lfeditor_select_options_cache'])) {
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['lfeditor_select_options_cache'] = [];
|
||||
}
|
||||
|
||||
$extConf = \SGalinski\Lfeditor\Utility\ExtensionUtility::getExtensionConfiguration();
|
||||
$pathSite = \TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/';
|
||||
if (
|
||||
array_key_exists('pathAdditionalConfiguration', $extConf) &&
|
||||
$extConf['pathAdditionalConfiguration'] !== 'typo3conf/AdditionalConfiguration.php' &&
|
||||
\is_file($pathSite . $extConf['pathAdditionalConfiguration'])
|
||||
) {
|
||||
// Include the additional LFEditor configuration file if not set to AdditionalConfiguration.php
|
||||
include_once $pathSite . $extConf['pathAdditionalConfiguration'];
|
||||
}
|
||||
|
||||
unset($extConf, $pathSite);
|
||||
Reference in New Issue
Block a user