diff options
author | jocuri%softhome.net <> | 2004-03-27 05:00:11 +0000 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-03-27 05:00:11 +0000 |
commit | c0fc50d35b1e3320b28b281c16489f78babc5abb (patch) | |
tree | 588957a4a2130089f67533b55ab3a7b7c6c53106 /config.cgi | |
parent | cecc6432218b8a3ca3dd07e6792de99e88be4683 (diff) | |
download | bugs-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar bugs-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.gz bugs-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.bz2 bugs-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.xz bugs-c0fc50d35b1e3320b28b281c16489f78babc5abb.zip |
Patch for bug 237369: implement relatively simple changes from %FORM to $cgi->param variable; patch by Teemu Mannermaa <wicked@etlicon.fi>; r=kiko, justdave; a=justdave.
Diffstat (limited to 'config.cgi')
-rwxr-xr-x | config.cgi | 6 |
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"; |