From 311eb45dbd343068dce41bb44dd8db9f8108cf7e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 16 Mar 2006 05:51:34 +0000 Subject: =?UTF-8?q?Bug=20330521:=20Remove=20@::legal=5Fproduct,=20@::legal?= =?UTF-8?q?=5Fcomponents=20and=20@::legal=5Ftarget=5Fmilestone=20-=20Patch?= =?UTF-8?q?=20by=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r?= =?UTF-8?q?=3Dmkanat=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collectstats.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'collectstats.pl') diff --git a/collectstats.pl b/collectstats.pl index 2d7d3d258..f6bfbdae1 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -32,15 +32,14 @@ use AnyDBM_File; use strict; use IO::Handle; -use vars @::legal_product; use lib "."; require "globals.pl"; -use Bugzilla::Search; -use Bugzilla::User; - use Bugzilla; use Bugzilla::Config qw(:DEFAULT $datadir); +use Bugzilla::Search; +use Bugzilla::User; +use Bugzilla::Product; # Turn off output buffering (probably needed when displaying output feedback # in the regenerate mode.) @@ -64,8 +63,8 @@ if ($#ARGV >= 0 && $ARGV[0] eq "--regenerate") { $regenerate = 1; } -my @myproducts; -push( @myproducts, "-All-", @::legal_product ); +my @myproducts = map {$_->name} Bugzilla::Product::get_all_products(); +unshift(@myproducts, "-All-"); my $tstart = time; foreach (@myproducts) { -- cgit v1.2.1