summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());