From f162521444148d622df3b42a8304b6cce8f2150e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 6 Jul 2006 13:12:04 +0000 Subject: Bug 173629: Clean up "my" variable scoping issues for mod_perl Patch By Max Kanat-Alexander r=LpSolit, a=myk --- attachment.cgi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index fcbd10020..94f4fbe5c 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -52,9 +52,13 @@ use Bugzilla::Token; Bugzilla->login(); -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 = {}; ################################################################################ # Main Body Execution -- cgit v1.2.3-24-g4f1b