summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-12-19 22:12:40 +0100
committerGitHub <noreply@github.com>2017-12-19 22:12:40 +0100
commitf16bb874769371169ecb2108444b741e6a6f7d9a (patch)
tree261a9416f16f0eb301440247e1a86b60bdd67c8d /Bugzilla/Config.pm
parent5eb98ac5a29eca6e40c79cfc9280195a1f5e8fd2 (diff)
downloadbugzilla-f16bb874769371169ecb2108444b741e6a6f7d9a.tar.gz
bugzilla-f16bb874769371169ecb2108444b741e6a6f7d9a.tar.xz
no bug - don't remove old params (#305)
Diffstat (limited to 'Bugzilla/Config.pm')
-rw-r--r--Bugzilla/Config.pm32
1 files changed, 0 insertions, 32 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm
index 629afb6d0..f93992f91 100644
--- a/Bugzilla/Config.pm
+++ b/Bugzilla/Config.pm
@@ -203,39 +203,7 @@ sub update_params {
$param->{'utf8'} = 1 if $new_install;
- # --- REMOVE OLD PARAMS ---
-
my %oldparams;
- # Remove any old params
- foreach my $item (keys %$param) {
- if (!exists $params{$item}) {
- $oldparams{$item} = delete $param->{$item};
- }
- }
-
- # Write any old parameters to old-params.txt
- my $datadir = bz_locations()->{'datadir'};
- my $old_param_file = "$datadir/old-params.txt";
- if (scalar(keys %oldparams)) {
- my $op_file = new IO::File($old_param_file, '>>', 0600)
- || die "Couldn't create $old_param_file: $!";
-
- print "The following parameters are no longer used in Bugzilla,",
- " and so have been\nmoved from your parameters file into",
- " $old_param_file:\n";
-
- local $Data::Dumper::Terse = 1;
- local $Data::Dumper::Indent = 0;
-
- my $comma = "";
- foreach my $item (keys %oldparams) {
- print $op_file "\n\n$item:\n" . Data::Dumper->Dump([$oldparams{$item}]) . "\n";
- print "${comma}$item";
- $comma = ", ";
- }
- print "\n";
- $op_file->close;
- }
if (ON_WINDOWS && !-e SENDMAIL_EXE
&& $param->{'mail_delivery_method'} eq 'Sendmail')