diff options
-rwxr-xr-x | Bug.pm | 3 | ||||
-rwxr-xr-x | Bugzilla/Bug.pm | 3 | ||||
-rw-r--r-- | Bugzilla/Search.pm | 3 | ||||
-rwxr-xr-x | move.pl | 6 | ||||
-rwxr-xr-x | xml.cgi | 5 |
5 files changed, 11 insertions, 9 deletions
@@ -26,8 +26,7 @@ use strict; use DBI; use RelationSet; use vars qw($unconfirmedstate $legal_keywords); -require "globals.pl"; -require "CGI.pl"; + package Bug; use CGI::Carp qw(fatalsToBrowser); my %ok_field; diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 3cbb1e765..7e703d14f 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -26,8 +26,7 @@ use strict; use DBI; use RelationSet; use vars qw($unconfirmedstate $legal_keywords); -require "globals.pl"; -require "CGI.pl"; + package Bug; use CGI::Carp qw(fatalsToBrowser); my %ok_field; diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 46921da28..fc4ae6213 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -27,8 +27,7 @@ use strict; -require "globals.pl"; -require "CGI.pl"; +# The caller MUST require CGI.pl and globals.pl before using this use vars qw($userid $usergroupset); @@ -25,8 +25,12 @@ use strict; use lib qw(.); -use Bug; require "CGI.pl"; + +use vars qw($userid %COOKIE); + +use Bug; + $::lockcount = 0; unless ( Param("move-enabled") ) { @@ -26,10 +26,11 @@ use strict; use lib qw(.); -use Bug; require "CGI.pl"; -use vars qw($template $vars); +use Bug; + +use vars qw($template $vars $userid %COOKIE); ConnectToDatabase(); quietly_check_login(); |