Commit 4f227192 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[TASK] Automatically include custom configuration file if any

To prevent confusion with custom configuration file, this commit
includes an auto-inclusion of custom configuration file if there
is any.
parent a4f7ba5b
<?php
if (!defined('TYPO3_MODE')) {
if (!\defined('TYPO3_MODE')) {
die('Access denied.');
}
// new cache table
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['lfeditor_select_options_cache'])) {
if (!\is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['lfeditor_select_options_cache'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['lfeditor_select_options_cache'] = array();
}
$extConf = \unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['lfeditor'], ['']);
if (
$extConf['pathAdditionalConfiguration'] !== 'typo3conf/AdditionalConfiguration.php' &&
\is_file(PATH_site . $extConf['pathAdditionalConfiguration'])
) {
// Include the additional LFEditor configuration file if not set to AdditionalConfiguration.php
include_once PATH_site . $extConf['pathAdditionalConfiguration'];
}
unset($extConf);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment