diff options
author | gerv%gerv.net <> | 2002-09-18 08:28:22 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-09-18 08:28:22 +0200 |
commit | c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8 (patch) | |
tree | 1e4b217ca1d33c5eb8f87321cd6fc2226bbc1210 /query.cgi | |
parent | 229bf2d0d7a6c7b48b25e4d9c08c038184340a8a (diff) | |
download | bugzilla-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 'query.cgi')
-rwxr-xr-x | query.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -363,7 +363,7 @@ $default{'querytype'} = $deforder || 'Importance'; $vars->{'default'} = \%default; # Generate and return the UI (HTML page) from the appropriate template. -my $format = ValidateOutputFormat($::FORM{'format'}, "search"); -print "Content-type: text/html\n\n"; -$template->process("search/$format->{'template'}", $vars) +my $format = GetFormat("search/search", $::FORM{'format'}, $::FORM{'ctype'}); +print "Content-Type: $format->{'ctype'}\n\n"; +$template->process($format->{'template'}, $vars) || ThrowTemplateError($template->error()); |