From 311eb45dbd343068dce41bb44dd8db9f8108cf7e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 16 Mar 2006 05:51:34 +0000 Subject: Bug 330521: Remove @::legal_product, @::legal_components and @::legal_target_milestone - Patch by Frédéric Buclin r=mkanat a=justdave 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.3-24-g4f1b