Unset old CA and Cert in system config

This looked odd. Why would we leave behind the old "ca" and "cert" section in $config["system"]?
I guess it would do no harm, but seems confusing for the future to have some unused entries like this remaining in the config.
Should a piece of code be put into the latest upgrade function to clean out these in any current config?
This commit is contained in:
Phil Davis 2015-07-21 21:18:30 +05:45
parent 775b46fa4b
commit 661de3e792

View File

@ -2547,9 +2547,11 @@ function upgrade_066_to_067() {
global $config;
if (isset($config['system']['ca'])) {
$config['ca'] = $config['system']['ca'];
unset($config['system']['ca']);
}
if (isset($config['system']['cert'])) {
$config['cert'] = $config['system']['cert'];
unset($config['system']['cert']);
}
}