From 44858935a589f254fdc5b4bb4f83df4aede99a07 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 11 Jun 2002 05:38:48 +0000 Subject: Fix for bug 150703: Adds format support to query.cgi. 2rx=gerv --- query.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'query.cgi') 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()); -- cgit v1.2.3-24-g4f1b