From b2b03103bba9927d5f1b123e0ad7ae1e04149dc8 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 25 Jan 2009 12:42:51 +0000 Subject: Bug 471880: More scripts should use the shadow DB instead of the master DB - Patch by Frédéric Buclin r=mkanat a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- describecomponents.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'describecomponents.cgi') diff --git a/describecomponents.cgi b/describecomponents.cgi index 806183783..6d4722ad8 100755 --- a/describecomponents.cgi +++ b/describecomponents.cgi @@ -32,14 +32,15 @@ use Bugzilla::Error; use Bugzilla::Product; my $user = Bugzilla->login(); - my $cgi = Bugzilla->cgi; -my $dbh = Bugzilla->dbh; my $template = Bugzilla->template; my $vars = {}; print $cgi->header(); +# This script does nothing but displaying mostly static data. +Bugzilla->switch_to_shadow_db; + my $product_name = trim($cgi->param('product') || ''); my $product = new Bugzilla::Product({'name' => $product_name}); -- cgit v1.2.3-24-g4f1b