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 /duplicates.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 'duplicates.cgi')
-rwxr-xr-xduplicates.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/duplicates.cgi b/duplicates.cgi
index 5687cefec..45eb219ff 100755
--- a/duplicates.cgi
+++ b/duplicates.cgi
@@ -34,6 +34,7 @@ require "CGI.pl";
use vars qw($buffer);
+use Bugzilla;
use Bugzilla::Search;
use Bugzilla::CGI;
@@ -50,11 +51,13 @@ if ($::FORM{'ctype'} && $::FORM{'ctype'} eq "xul") {
# Use global templatisation variables.
use vars qw($template $vars);
-ConnectToDatabase(1);
+ConnectToDatabase();
GetVersionTable();
quietly_check_login();
+Bugzilla->instance->switch_to_shadow_db();
+
use vars qw (%FORM $userid @legal_product);
my %dbmcount;