summaryrefslogtreecommitdiffstats
path: root/duplicates.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-xduplicates.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/duplicates.cgi b/duplicates.cgi
index 5196027ac..3eeab3fb5 100755
--- a/duplicates.cgi
+++ b/duplicates.cgi
@@ -202,12 +202,13 @@ $vars->{'product'} = $product;
$vars->{'products'} = \@::legal_product;
-my $format = ValidateOutputFormat($::FORM{'format'}, "duplicates", "reports");
+my $format =
+ GetFormat("reports/duplicates", $::FORM{'format'}, $::FORM{'ctype'});
-print "Content-Type: $format->{'contenttype'}\n\n";
+print "Content-Type: $format->{'ctype'}\n\n";
# Generate and return the UI (HTML page) from the appropriate template.
-$template->process("reports/$format->{'template'}", $vars)
+$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());