diff options
Diffstat (limited to 'chart.cgi')
-rwxr-xr-x | chart.cgi | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -53,9 +53,13 @@ use Bugzilla::Chart; use Bugzilla::Series; use Bugzilla::User; -my $cgi = Bugzilla->cgi; -my $template = Bugzilla->template; -my $vars = {}; +# For most scripts we don't make $cgi and $template global variables. But +# when preparing Bugzilla for mod_perl, this script used these +# variables in so many subroutines that it was easier to just +# make them globals. +local our $cgi = Bugzilla->cgi; +local our $template = Bugzilla->template; +local our $vars = {}; # Go back to query.cgi if we are adding a boolean chart parameter. if (grep(/^cmd-/, $cgi->param())) { |