]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 150703: Adds format support to query.cgi.
authormyk%mozilla.org <>
Tue, 11 Jun 2002 05:38:48 +0000 (05:38 +0000)
committermyk%mozilla.org <>
Tue, 11 Jun 2002 05:38:48 +0000 (05:38 +0000)
2rx=gerv

query.cgi

index c75834c33976a33dad1abb6f057b28f17c2ef7e6..5e3255ea68fae53f6729299be80361e8b499d802 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -376,6 +376,8 @@ $default{'querytype'} = $deforder || 'Importance';
 $vars->{'default'} = \%default;
 
 # Generate and return the UI (HTML page) from the appropriate template.
+$::FORM{'format'} ||= "classic";
+my $format = ValidateOutputFormat($::FORM{'format'}, "search");
 print "Content-type: text/html\n\n";
-$template->process("search/search.html.tmpl", $vars)
+$template->process("search/$format->{'template'}", $vars)
   || ThrowTemplateError($template->error());