From 150660ee3f4201df06c96b802dbed17753e72b68 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Sat, 27 Apr 2002 06:18:53 +0000 Subject: Bug 138994 - split up duplicates.html.tmpl. Patch by gerv; r=myk, bbaetz. --- duplicates.cgi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'duplicates.cgi') 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()); -- cgit v1.2.3-24-g4f1b