Commit 44858935 authored by myk%mozilla.org's avatar myk%mozilla.org

Fix for bug 150703: Adds format support to query.cgi.

2rx=gerv
parent 78cbd8ba
...@@ -376,6 +376,8 @@ $default{'querytype'} = $deforder || 'Importance'; ...@@ -376,6 +376,8 @@ $default{'querytype'} = $deforder || 'Importance';
$vars->{'default'} = \%default; $vars->{'default'} = \%default;
# Generate and return the UI (HTML page) from the appropriate template. # 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"; print "Content-type: text/html\n\n";
$template->process("search/search.html.tmpl", $vars) $template->process("search/$format->{'template'}", $vars)
|| ThrowTemplateError($template->error()); || ThrowTemplateError($template->error());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment