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/Chart.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Bugzilla/Chart.pm') diff --git a/Bugzilla/Chart.pm b/Bugzilla/Chart.pm index c878186bc..b2db9da30 100644 --- a/Bugzilla/Chart.pm +++ b/Bugzilla/Chart.pm @@ -32,6 +32,7 @@ use lib "."; # the same points. package Bugzilla::Chart; +use Bugzilla::Error; use Bugzilla::Util; use Bugzilla::Series; @@ -75,7 +76,7 @@ sub init { if ($param =~ /^line(\d+)$/) { foreach my $series_id ($cgi->param($param)) { detaint_natural($series_id) - || &::ThrowCodeError("invalid_series_id"); + || ThrowCodeError("invalid_series_id"); my $series = new Bugzilla::Series($series_id); push(@{$self->{'lines'}[$1]}, $series) if $series; } @@ -101,7 +102,7 @@ sub init { foreach my $date ('datefrom', 'dateto') { if ($self->{$date}) { $self->{$date} = str2time($self->{$date}) - || &::ThrowUserError("illegal_date", { date => $self->{$date}}); + || ThrowUserError("illegal_date", { date => $self->{$date}}); } } @@ -109,7 +110,7 @@ sub init { if ($self->{'datefrom'} && $self->{'dateto'} && $self->{'datefrom'} > $self->{'dateto'}) { - &::ThrowUserError("misarranged_dates", + ThrowUserError("misarranged_dates", {'datefrom' => $cgi->param('datefrom'), 'dateto' => $cgi->param('dateto')}); } -- cgit v1.2.3-24-g4f1b