summaryrefslogtreecommitdiffstats
path: root/describekeywords.cgi
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-05-05 10:15:19 +0200
committerbbaetz%acm.org <>2003-05-05 10:15:19 +0200
commit9488a8906592564ec2e7601041f3ea5484cde3cc (patch)
treeb9308d1a3dcf639d1e561ede1186ff58afc01834 /describekeywords.cgi
parentc000c0a480f2cb73f2b0b89550bbd8e496b73c9d (diff)
downloadbugzilla-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.gz
bugzilla-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.xz
Bug 201816 - use CGI.pm for header output
r=joel, a=justdave
Diffstat (limited to 'describekeywords.cgi')
-rwxr-xr-xdescribekeywords.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/describekeywords.cgi b/describekeywords.cgi
index 0ff538b63..60c5a9fd8 100755
--- a/describekeywords.cgi
+++ b/describekeywords.cgi
@@ -24,6 +24,8 @@
use strict;
use lib ".";
+use Bugzilla;
+
require "CGI.pl";
# Use the global template variables.
@@ -33,6 +35,8 @@ ConnectToDatabase();
quietly_check_login();
+my $cgi = Bugzilla->cgi;
+
SendSQL("SELECT keyworddefs.name, keyworddefs.description,
COUNT(keywords.bug_id)
FROM keyworddefs LEFT JOIN keywords ON keyworddefs.id=keywords.keywordid
@@ -52,6 +56,6 @@ while (MoreSQLData()) {
$vars->{'keywords'} = \@keywords;
$vars->{'caneditkeywords'} = UserInGroup("editkeywords");
-print "Content-type: text/html\n\n";
+print Bugzilla->cgi->header();
$template->process("reports/keywords.html.tmpl", $vars)
|| ThrowTemplateError($template->error());