summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2003-01-15 05:00:05 +0100
committerbbaetz%student.usyd.edu.au <>2003-01-15 05:00:05 +0100
commit6368cfad3ea49b6220598d2e362defbc820b9c36 (patch)
tree7d8eabc6b39e880548672c71dd5286684ebffae7 /reports.cgi
parentf50d2365975b419d62b398af9a886da4f5bcaff4 (diff)
downloadbugzilla-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 'reports.cgi')
-rwxr-xr-xreports.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi
index e18d3ee37..230fe32db 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -51,13 +51,17 @@ $@ && ThrowCodeError("chart_lines_not_installed");
my $dir = "data/mining";
my $graph_dir = "graphs";
+use Bugzilla;
+
# If we're using bug groups for products, we should apply those restrictions
# to viewing reports, as well. Time to check the login in that case.
-ConnectToDatabase(1);
+ConnectToDatabase();
quietly_check_login();
GetVersionTable();
+Bugzilla->instance->switch_to_shadow_db();
+
# We only want those products that the user has permissions for.
my @myproducts;
push( @myproducts, "-All-");