diff options
author | lpsolit%gmail.com <> | 2006-03-16 06:51:34 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-03-16 06:51:34 +0100 |
commit | 311eb45dbd343068dce41bb44dd8db9f8108cf7e (patch) | |
tree | 34c2f43c62b24714389d1ef5a3fa79175cbc593b /collectstats.pl | |
parent | d19c2c5203d27955941e51bf75415c88e611b7b4 (diff) | |
download | bugzilla-311eb45dbd343068dce41bb44dd8db9f8108cf7e.tar.gz bugzilla-311eb45dbd343068dce41bb44dd8db9f8108cf7e.tar.xz |
Bug 330521: Remove @::legal_product, @::legal_components and @::legal_target_milestone - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-x | collectstats.pl | 11 |
1 files changed, 5 insertions, 6 deletions
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) { |