summaryrefslogtreecommitdiffstats
path: root/config.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'config.cgi')
-rwxr-xr-xconfig.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.cgi b/config.cgi
index a02ff8c7b..f7cb95ee5 100755
--- a/config.cgi
+++ b/config.cgi
@@ -53,8 +53,6 @@ use vars
@legal_target_milestone
@legal_versions
@legal_keywords
-
- %FORM
);
# Use the global template variables defined in globals.pl
@@ -92,7 +90,9 @@ $vars->{'field'} = [GetFieldDefs()];
# Determine how the user would like to receive the output;
# default is JavaScript.
-my $format = GetFormat("config", $::FORM{'format'}, $::FORM{'ctype'} || "js");
+my $cgi = Bugzilla->cgi;
+my $format = GetFormat("config", scalar($cgi->param('format')),
+ scalar($cgi->param('ctype')) || "js");
# Return HTTP headers.
print "Content-Type: $format->{'ctype'}\n\n";