diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-10-09 23:01:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 23:01:07 +0200 |
commit | 75dbfe1dc03748957f07eca5ac583bedc6fdba76 (patch) | |
tree | 692f90aa15f4e512581cf2cf06a9b240757aaaba /editparams.cgi | |
parent | 2ae37c378b50b1ae16c35ce74999b19eb91af07d (diff) | |
download | bugzilla-75dbfe1dc03748957f07eca5ac583bedc6fdba76.tar.gz bugzilla-75dbfe1dc03748957f07eca5ac583bedc6fdba76.tar.xz |
Bug 623384 - Use Module::Runtime instead of eval { require } or eval "use"
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), |