diff options
| author | gerv%gerv.net <> | 2002-04-27 06:18:53 +0000 |
|---|---|---|
| committer | gerv%gerv.net <> | 2002-04-27 06:18:53 +0000 |
| commit | 150660ee3f4201df06c96b802dbed17753e72b68 (patch) | |
| tree | e692b2560917e250aeb28cf0a8c67596864f96c7 /duplicates.cgi | |
| parent | 6578779de149b5a2649978b18f283b924f21a30d (diff) | |
| download | bugs-150660ee3f4201df06c96b802dbed17753e72b68.tar bugs-150660ee3f4201df06c96b802dbed17753e72b68.tar.gz bugs-150660ee3f4201df06c96b802dbed17753e72b68.tar.bz2 bugs-150660ee3f4201df06c96b802dbed17753e72b68.tar.xz bugs-150660ee3f4201df06c96b802dbed17753e72b68.zip | |
Bug 138994 - split up duplicates.html.tmpl. Patch by gerv; r=myk, bbaetz.
Diffstat (limited to 'duplicates.cgi')
| -rwxr-xr-x | duplicates.cgi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/duplicates.cgi b/duplicates.cgi index 98e7e0a22..50affa6df 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -191,13 +191,17 @@ $vars->{'changedsince'} = $changedsince; $vars->{'maxrows'} = $maxrows; $vars->{'openonly'} = $openonly; $vars->{'reverse'} = $reverse; +$vars->{'format'} = $::FORM{'format'}; $vars->{'product'} = $product; $vars->{'products'} = \@::legal_product; -print "Content-type: text/html\n\n"; + +my $format = ValidateOutputFormat($::FORM{'format'}, "duplicates", "reports"); + +print "Content-Type: $format->{'contenttype'}\n\n"; # Generate and return the UI (HTML page) from the appropriate template. -$template->process("reports/duplicates.html.tmpl", $vars) +$template->process("reports/$format->{'template'}", $vars) || ThrowTemplateError($template->error()); |
