summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
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-");