From 0cb96841eef5fe65ba5dcf704ac2012af839feef Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 26 Jun 2006 17:06:47 +0000 Subject: Bug 342410: Various modules assume functions are in global scope, when none are Patch By Max Kanat-Alexander r=LpSolit, a=justdave --- Bugzilla/User.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index c26f64332..7ad1593ce 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1007,8 +1007,8 @@ sub match_field { } my $limit = 0; - if (&::Param('maxusermatches')) { - $limit = &::Param('maxusermatches') + 1; + if (Param('maxusermatches')) { + $limit = Param('maxusermatches') + 1; } for my $query (@queries) { @@ -1039,16 +1039,16 @@ sub match_field { $cgi->append(-name=>$field, -values=>[@{$users}[0]->{'login'}]); - $need_confirm = 1 if &::Param('confirmuniqueusermatch'); + $need_confirm = 1 if Param('confirmuniqueusermatch'); } elsif ((scalar(@{$users}) > 1) - && (&::Param('maxusermatches') != 1)) { + && (Param('maxusermatches') != 1)) { $need_confirm = 1; $match_multiple = 1; - if ((&::Param('maxusermatches')) - && (scalar(@{$users}) > &::Param('maxusermatches'))) + if ((Param('maxusermatches')) + && (scalar(@{$users}) > Param('maxusermatches'))) { $matches->{$field}->{$query}->{'status'} = 'trunc'; pop @{$users}; # take the last one out @@ -1265,7 +1265,7 @@ sub get_userlist { my $dbh = Bugzilla->dbh; my $query = "SELECT DISTINCT login_name, realname,"; - if (&::Param('usevisibilitygroups')) { + if (Param('usevisibilitygroups')) { $query .= " COUNT(group_id) "; } else { $query .= " 1 "; -- cgit v1.2.3-24-g4f1b