summaryrefslogtreecommitdiffstats
path: root/duplicates.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-27 08:18:53 +0200
committergerv%gerv.net <>2002-04-27 08:18:53 +0200
commit150660ee3f4201df06c96b802dbed17753e72b68 (patch)
treee692b2560917e250aeb28cf0a8c67596864f96c7 /duplicates.cgi
parent6578779de149b5a2649978b18f283b924f21a30d (diff)
downloadbugzilla-150660ee3f4201df06c96b802dbed17753e72b68.tar.gz
bugzilla-150660ee3f4201df06c96b802dbed17753e72b68.tar.xz
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());