diff options
Diffstat (limited to 'defparams.pl')
-rw-r--r-- | defparams.pl | 15 |
1 files changed, 10 insertions, 5 deletions
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 <em>$item</em> parameter is no longer used in Bugzilla + and has been removed from your parameters file.<br>"; + 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 |