summaryrefslogtreecommitdiffstats
path: root/editparams.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-07-04 06:23:25 +0200
committermkanat%bugzilla.org <>2006-07-04 06:23:25 +0200
commit49979b3775108f709cefbc9190eb9c7546aace94 (patch)
tree3947a3d223fdc9ab83df37783475b209b6edf4e7 /editparams.cgi
parent089556aa0283a18568c2e71d154e1bc19c8b60d2 (diff)
downloadbugzilla-49979b3775108f709cefbc9190eb9c7546aace94.tar.gz
bugzilla-49979b3775108f709cefbc9190eb9c7546aace94.tar.xz
Bug 343112: @Bugzilla::Config::parampanels is only defined if something calls _load_params
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'editparams.cgi')
-rwxr-xr-xeditparams.cgi9
1 files changed, 3 insertions, 6 deletions
diff --git a/editparams.cgi b/editparams.cgi
index 61fc03811..f8c12f581 100755
--- a/editparams.cgi
+++ b/editparams.cgi
@@ -27,13 +27,11 @@ use lib ".";
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::Config qw(:DEFAULT :admin :params);
+use Bugzilla::Config qw(:DEFAULT :admin);
use Bugzilla::Config::Common;
use Bugzilla::Util;
use Bugzilla::Error;
-use vars qw(@parampanels);
-
my $user = Bugzilla->login(LOGIN_REQUIRED);
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
@@ -53,9 +51,8 @@ $current_panel = $1;
my $current_module;
my @panels = ();
-foreach my $panel (@parampanels) {
- next if ($panel eq 'Common');
- require "Bugzilla/Config/$panel.pm";
+foreach my $panel (Bugzilla::Config::param_panels()) {
+ eval("require Bugzilla::Config::$panel") || die $@;
my @module_param_list = "Bugzilla::Config::${panel}"->get_param_list(1);
my $item = { name => lc($panel),
current => ($current_panel eq lc($panel)) ? 1 : 0,