diff options
author | myk%mozilla.org <> | 2002-06-11 07:38:48 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2002-06-11 07:38:48 +0200 |
commit | 44858935a589f254fdc5b4bb4f83df4aede99a07 (patch) | |
tree | e5cd74712fe525d0b4b72ef327e00bc8cceaaca1 /query.cgi | |
parent | 78cbd8ba5f133da98a7a10910d43a901f7a21c39 (diff) | |
download | bugzilla-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-x | query.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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()); |