summaryrefslogtreecommitdiffstats
path: root/describecomponents.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'describecomponents.cgi')
-rwxr-xr-xdescribecomponents.cgi5
1 files changed, 3 insertions, 2 deletions
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});