diff options
author | bbaetz%student.usyd.edu.au <> | 2003-01-15 05:00:05 +0100 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2003-01-15 05:00:05 +0100 |
commit | 6368cfad3ea49b6220598d2e362defbc820b9c36 (patch) | |
tree | 7d8eabc6b39e880548672c71dd5286684ebffae7 /collectstats.pl | |
parent | f50d2365975b419d62b398af9a886da4f5bcaff4 (diff) | |
download | bugzilla-6368cfad3ea49b6220598d2e362defbc820b9c36.tar.gz bugzilla-6368cfad3ea49b6220598d2e362defbc820b9c36.tar.xz |
Bug 163290 - move DB handling code into a module
r=justdave, myk, joel, preed
a=justdave
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-x | collectstats.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/collectstats.pl b/collectstats.pl index 1f8b4783c..27a6e1840 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -31,6 +31,8 @@ use vars @::legal_product; require "globals.pl"; +use Bugzilla; + # tidy up after graphing module if (chdir("graphs")) { unlink <./*.gif>; @@ -38,9 +40,11 @@ if (chdir("graphs")) { chdir(".."); } -ConnectToDatabase(1); +ConnectToDatabase(); GetVersionTable(); +Bugzilla->instance->switch_to_shadow_db(); + my @myproducts; push( @myproducts, "-All-", @::legal_product ); |