aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-27 06:18:53 +0000
committergerv%gerv.net <>2002-04-27 06:18:53 +0000
commit150660ee3f4201df06c96b802dbed17753e72b68 (patch)
treee692b2560917e250aeb28cf0a8c67596864f96c7 /duplicates.cgi
parentBug 140419 - fix merge error from bug 138995. Oops. Patch by burnus@gmx.de; 2... (diff)
downloadbugzilla-150660ee3f4201df06c96b802dbed17753e72b68.tar.gz
bugzilla-150660ee3f4201df06c96b802dbed17753e72b68.tar.bz2
bugzilla-150660ee3f4201df06c96b802dbed17753e72b68.zip
Bug 138994 - split up duplicates.html.tmpl. Patch by gerv; r=myk, bbaetz.
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-xduplicates.cgi8
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());