aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2003-01-15 04:00:05 +0000
committerbbaetz%student.usyd.edu.au <>2003-01-15 04:00:05 +0000
commit6368cfad3ea49b6220598d2e362defbc820b9c36 (patch)
tree7d8eabc6b39e880548672c71dd5286684ebffae7 /report.cgi
parentBug 156169: Bug number styling issues in attachment viewer/editor. r=joel, a=... (diff)
downloadbugzilla-6368cfad3ea49b6220598d2e362defbc820b9c36.tar.gz
bugzilla-6368cfad3ea49b6220598d2e362defbc820b9c36.tar.bz2
bugzilla-6368cfad3ea49b6220598d2e362defbc820b9c36.zip
Bug 163290 - move DB handling code into a module
r=justdave, myk, joel, preed a=justdave
Diffstat (limited to 'report.cgi')
-rwxr-xr-xreport.cgi4
1 files changed, 3 insertions, 1 deletions
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';