Skip to content
Snippets Groups Projects
Commit d66dd1ee authored by Benni Mack's avatar Benni Mack Committed by Oliver Hader
Browse files

[BUGFIX] Allow to edit legacy site configuration files in BE

We recently removed the "site" base prefix within the yaml
configuration file of a site configuration.

However, the indention is wrong when using FormEngine
to edit the site configuration within the "old" syntax.

Resolves: #86437
Related: #86323
Releases: master
Change-Id: I487940188b04c4977d179337cb142f2452c3bace
Reviewed-on: https://review.typo3.org/58449


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent 39372fe7
Branches
Tags
No related merge requests found
......@@ -85,6 +85,14 @@ class SiteDatabaseEditRow implements FormDataProviderInterface
Environment::getConfigPath() . '/sites'
);
// load config as it is stored on disk (without replacements)
return $siteConfiguration->load($site->getIdentifier());
$configuration = $siteConfiguration->load($site->getIdentifier());
if (isset($configuration['site'])) {
trigger_error(
'Site configuration with key \'site\' has been deprecated, remove indentation level and site key.',
E_USER_DEPRECATED
);
$configuration = $configuration['site'];
}
return $configuration;
}
}
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