From 6368cfad3ea49b6220598d2e362defbc820b9c36 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Wed, 15 Jan 2003 04:00:05 +0000 Subject: Bug 163290 - move DB handling code into a module r=justdave, myk, joel, preed a=justdave --- report.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'report.cgi') diff --git a/report.cgi b/report.cgi index f727ee466..d113e6d89 100755 --- a/report.cgi +++ b/report.cgi @@ -28,6 +28,8 @@ require "CGI.pl"; use vars qw($cgi $template $vars); +use Bugzilla; + # Go straight back to query.cgi if we are adding a boolean chart. if (grep(/^cmd-/, $cgi->param())) { my $params = $cgi->canonicalise_query("format", "ctype"); @@ -44,7 +46,7 @@ GetVersionTable(); confirm_login(); -ReconnectToShadowDatabase(); +Bugzilla->instance->switch_to_shadow_db(); my $action = $cgi->param('action') || 'menu'; -- cgit v1.2.3-24-g4f1b