From 429456196dd7ce8ef7e0876b7e57cdc394a228ba Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Wed, 30 Jan 2002 22:14:10 +0000 Subject: Fix for bug 104521: Removes old attachment interface in favor of new attachment tracker. Patch by Myk Melez . r=bbaetz,kiko --- defparams.pl | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'defparams.pl') diff --git a/defparams.pl b/defparams.pl index 76fb77777..819013341 100644 --- a/defparams.pl +++ b/defparams.pl @@ -54,6 +54,16 @@ sub WriteParams { } } } + # If Bugzilla has been upgraded since the last time parameters were edited, + # and some parameters have been removed in the new version of Bugzilla, + # remove them from the parameters file. + foreach my $item (keys %::param) { + if (!grep($_ eq $item, @::param_list) && $item ne "version") { + print "The $item parameter is no longer used in Bugzilla + and has been removed from your parameters file.
"; + delete $::param{$item}; + } + } mkdir("data", 0777); chmod 0777, "data"; my $tmpname = "data/params.$$"; @@ -674,11 +684,6 @@ DefParam("moved-default-component", "t", ''); -DefParam("useattachmenttracker", - "Whether or not to use the attachment tracker that adds additional features for tracking bug attachments.", - "b", - 0); - # The maximum size (in bytes) for patches and non-patch attachments. # The default limit is 1000KB, which is 24KB less than mysql's default # maximum packet size (which determines how much data can be sent in a -- cgit v1.2.3-24-g4f1b