diff options
author | lpsolit%gmail.com <> | 2005-10-31 05:31:27 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-31 05:31:27 +0000 |
commit | 1254fcb8c43defcbce99713f5cd85a104670895e (patch) | |
tree | 3b842a5b96f429d0db2d5ade3ba409cf1fae7e5a /show_bug.cgi | |
parent | Bug 314088: Several Bugzilla::Foo->new crash when passing a string instead of... (diff) | |
download | bugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.tar.gz bugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.tar.bz2 bugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.zip |
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-x | show_bug.cgi | 6 |
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; } } |