summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-06-11 07:38:48 +0200
committermyk%mozilla.org <>2002-06-11 07:38:48 +0200
commit44858935a589f254fdc5b4bb4f83df4aede99a07 (patch)
treee5cd74712fe525d0b4b72ef327e00bc8cceaaca1 /query.cgi
parent78cbd8ba5f133da98a7a10910d43a901f7a21c39 (diff)
downloadbugzilla-44858935a589f254fdc5b4bb4f83df4aede99a07.tar.gz
bugzilla-44858935a589f254fdc5b4bb4f83df4aede99a07.tar.xz
Fix for bug 150703: Adds format support to query.cgi.
2rx=gerv
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/query.cgi b/query.cgi
index c75834c33..5e3255ea6 100755
--- 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());