Skip to content

Commit

Permalink
[BUGFIX] Fix extension config handling on TYPO3 10 (FluidTYPO3#1652)
Browse files Browse the repository at this point in the history
websi authored May 30, 2020
1 parent f70baf9 commit dbe4def
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ext_localconf.php
Original file line number Diff line number Diff line change
@@ -52,8 +52,15 @@ function mb_chr($code, $enc = null) { return FluidTYPO3\Vhs\Mbstring::mb_chr($co
function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); }
}
}

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['vhs']['setup'] = unserialize($_EXTCONF);
if (class_exists(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class)) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['vhs']['setup'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get('vhs');
} else {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['vhs']['setup'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility::class
)->getCurrentConfiguration('vhs');
}
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['vhs']['setup']['disableAssetHandling']) || !$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['vhs']['setup']['disableAssetHandling']) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['usePageCache'][] = 'FluidTYPO3\\Vhs\\Service\\AssetService';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][] = 'FluidTYPO3\\Vhs\\Service\\AssetService->buildAllUncached';

0 comments on commit dbe4def

Please sign in to comment.