From f16bb874769371169ecb2108444b741e6a6f7d9a Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 19 Dec 2017 16:12:40 -0500 Subject: no bug - don't remove old params (#305) --- Bugzilla/Config.pm | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'Bugzilla/Config.pm') 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') -- cgit v1.2.3-24-g4f1b