Drop back to old section header format if show_list_header is off. (This is
basically a hack to stop breaking woody's reportbug.)
for ( my $i = 0; $i < @order; $i++ ) {
my $order = $order[ $i ];
next unless defined $section{$order};
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 .= "<HR><H2><a name=\"$order\"></a>$headers[$i] ($count $bugs)</H2>\n";
+ if ($common{show_list_header}) {
+ my $count = $count{"_$order"};
+ my $bugs = $count == 1 ? "bug" : "bugs";
+ $result .= "<HR><H2><a name=\"$order\"></a>$headers[$i] ($count $bugs)</H2>\n";
+ } else {
+ $result .= "<HR><H2>$headers[$i]</H2>\n";
+ }
$result .= "<UL>\n";
$result .= $section{$order};
$result .= "</UL>\n";
$result .= "<UL>\n";
$result .= $section{$order};
$result .= "</UL>\n";