summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-09-18 08:28:22 +0200
committergerv%gerv.net <>2002-09-18 08:28:22 +0200
commitc491adcb47a55a68b7c234b03b7a3e4cd8b2fda8 (patch)
tree1e4b217ca1d33c5eb8f87321cd6fc2226bbc1210 /buglist.cgi
parent229bf2d0d7a6c7b48b25e4d9c08c038184340a8a (diff)
downloadbugzilla-c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8.tar.gz
bugzilla-c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8.tar.xz
Bug 146495 - clean up format ambiguities. We now have separate "format" and "ctype" parameters. Also fixes bug 140513, bug 143604, and bug 148133. Patch by gerv; r=myk.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 74e436aee..eeede9944 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -89,7 +89,7 @@ else {
# Determine the format in which the user would like to receive the output.
# Uses the default format if the user did not specify an output format;
# otherwise validates the user's choice against the list of available formats.
-my $format = ValidateOutputFormat($::FORM{'format'}, "list");
+my $format = GetFormat("list/list", $::FORM{'format'}, $::FORM{'ctype'});
# Use server push to display a "Please wait..." message for the user while
# executing their query if their browser supports it and they are viewing
@@ -764,7 +764,7 @@ if ($format->{'extension'} eq "html") {
}
}
else {
- print "Content-Type: $format->{'contenttype'}\n";
+ print "Content-Type: $format->{'ctype'}\n";
}
print "\n"; # end HTTP headers
@@ -775,7 +775,7 @@ print "\n"; # end HTTP headers
################################################################################
# Generate and return the UI (HTML page) from the appropriate template.
-$template->process("list/$format->{'template'}", $vars)
+$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());