diff options
Diffstat (limited to 'editparams.cgi')
-rwxr-xr-x | editparams.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editparams.cgi b/editparams.cgi index 495d53937..2dd9ff08d 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -23,6 +23,7 @@ use Bugzilla::Token; use Bugzilla::User; use Bugzilla::User::Setting; use Bugzilla::Status; +use Module::Runtime qw(require_module); my $user = Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; @@ -48,7 +49,7 @@ my $param_panels = Bugzilla::Config::param_panels(); my $override = Bugzilla->localconfig->{param_override}; foreach my $panel (keys %$param_panels) { my $module = $param_panels->{$panel}; - eval("require $module") || die $@; + require_module($module); my @module_param_list = $module->get_param_list(); my $item = { name => lc($panel), |