From 58865d12b2557d93e684c550e8f1de6aa377dc24 Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Fri, 19 Sep 2003 00:20:55 -0800 Subject: [PATCH] [project @ 2003-09-19 01:20:55 by cjwatson] Drop back to old section header format if show_list_header is off. (This is basically a hack to stop breaking woody's reportbug.) --- cgi/common.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cgi/common.pl b/cgi/common.pl index 71e0cd3..4ab1cc4 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -560,9 +560,13 @@ sub htmlizebugs { for ( my $i = 0; $i < @order; $i++ ) { my $order = $order[ $i ]; next unless defined $section{$order}; - my $count = $count{"_$order"}; - my $bugs = $count == 1 ? "bug" : "bugs"; - $result .= "

$headers[$i] ($count $bugs)

\n"; + if ($common{show_list_header}) { + my $count = $count{"_$order"}; + my $bugs = $count == 1 ? "bug" : "bugs"; + $result .= "

$headers[$i] ($count $bugs)

\n"; + } else { + $result .= "

$headers[$i]

\n"; + } $result .= "\n"; -- 2.39.2