From: myk%mozilla.org <> Date: Tue, 11 Jun 2002 05:38:48 +0000 (+0000) Subject: Fix for bug 150703: Adds format support to query.cgi. X-Git-Tag: bugzilla-2.17.1~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44858935a589f254fdc5b4bb4f83df4aede99a07;p=thirdparty%2Fbugzilla.git Fix for bug 150703: Adds format support to query.cgi. 2rx=gerv --- diff --git a/query.cgi b/query.cgi index c75834c339..5e3255ea68 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());