From 2545c0950c4f0fde8f78b265217fa9f523eff7bf Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 20 Jun 2006 03:15:17 +0000 Subject: Bug 304601: Bugzilla::Config's :locations exports need to be in their own module - Patch by Frédéric Buclin r=mkanat for the main patch, r=myk for the patch about CGI.pm a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 328637: Remove all legal_* versioncache arrays - Patch by Frédéric Buclin r=mkanat a=justdave Bug 110503 - Eliminate versioncache --- editparams.cgi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'editparams.cgi') diff --git a/editparams.cgi b/editparams.cgi index 57058e7ad..487208b47 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -49,14 +49,12 @@ my $current_panel = $cgi->param('section') || 'core'; $current_panel =~ /^([A-Za-z0-9_-]+)$/; $current_panel = $1; -GetVersionTable(); - my $current_module; my @panels = (); foreach my $panel (@parampanels) { next if ($panel eq 'Common'); require "Bugzilla/Config/$panel.pm"; - my @module_param_list = "Bugzilla::Config::${panel}"->get_param_list(); + my @module_param_list = "Bugzilla::Config::${panel}"->get_param_list(1); my $item = { name => lc($panel), current => ($current_panel eq lc($panel)) ? 1 : 0, param_list => \@module_param_list, @@ -70,7 +68,7 @@ $vars->{panels} = \@panels; if ($action eq 'save' && $current_module) { my @changes = (); - my @module_param_list = "Bugzilla::Config::${current_module}"->get_param_list(); + my @module_param_list = "Bugzilla::Config::${current_module}"->get_param_list(1); foreach my $i (@module_param_list) { my $name = $i->{'name'}; @@ -128,7 +126,6 @@ if ($action eq 'save' && $current_module) { $vars->{'param_changed'} = \@changes; WriteParams(); - unlink "$datadir/versioncache"; } $template->process("admin/params/editparams.html.tmpl", $vars) -- cgit v1.2.3-24-g4f1b