Skip to content

Commit

Permalink
[BUGFIX] Add fallback for SC_OPTIONS for case when it is defined in…
Browse files Browse the repository at this point in the history
… `ext_localconf.php` (#1274)

Co-authored-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
  • Loading branch information
beatrycze-volk and sebastian-meyer committed Jul 11, 2024
1 parent 7e11f6a commit e52dd87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Classes/Common/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,11 @@ private static function getEncryptionKey(): ?string
private static function getLocalConfigurationByPath(string $path)
{
$configurationManager = GeneralUtility::makeInstance(ConfigurationManager::class);
return $configurationManager->getLocalConfigurationValueByPath($path);

if (array_key_exists(strtok($path, '/'), $configurationManager->getLocalConfiguration())) {
return $configurationManager->getLocalConfigurationValueByPath($path);
}

return ArrayUtility::getValueByPath($GLOBALS['TYPO3_CONF_VARS'], $path);
}
}

0 comments on commit e52dd87

Please sign in to comment.