summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-31 06:31:27 +0100
committerlpsolit%gmail.com <>2005-10-31 06:31:27 +0100
commit1254fcb8c43defcbce99713f5cd85a104670895e (patch)
tree3b842a5b96f429d0db2d5ade3ba409cf1fae7e5a /show_bug.cgi
parentcf3aa532ea51a41b02c8ea73db254d01c03280ba (diff)
downloadbugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.tar.gz
bugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.tar.xz
Bug 304075: Eliminate use of $::userid from Bugzilla - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi6
1 files changed, 2 insertions, 4 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 0a99598b5..4d6819a36 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -30,8 +30,6 @@ use Bugzilla::User;
require "globals.pl";
-use vars qw($userid);
-
use Bugzilla::Bug;
my $cgi = Bugzilla->cgi;
@@ -69,7 +67,7 @@ if ($single) {
# Its a bit silly to do the validation twice - that functionality should
# probably move into Bug.pm at some point
ValidateBugID($id);
- push @bugs, new Bugzilla::Bug($id, $userid);
+ push @bugs, new Bugzilla::Bug($id, Bugzilla->user->id);
if (defined $cgi->param('mark')) {
foreach my $range (split ',', $cgi->param('mark')) {
if ($range =~ /^(\d+)-(\d+)$/) {
@@ -83,7 +81,7 @@ if ($single) {
}
} else {
foreach my $id ($cgi->param('id')) {
- my $bug = new Bugzilla::Bug($id, $userid);
+ my $bug = new Bugzilla::Bug($id, Bugzilla->user->id);
push @bugs, $bug;
}
}