From: cjwatson <> Date: Fri, 19 Sep 2003 08:20:55 +0000 (-0800) Subject: [project @ 2003-09-19 01:20:55 by cjwatson] X-Git-Tag: release/2.6.0~781 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=58865d12b2557d93e684c550e8f1de6aa377dc24;p=debbugs.git [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.) --- 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";