]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-09-19 01:20:55 by cjwatson]
authorcjwatson <>
Fri, 19 Sep 2003 08:20:55 +0000 (00:20 -0800)
committercjwatson <>
Fri, 19 Sep 2003 08:20:55 +0000 (00:20 -0800)
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

index 71e0cd3dbf95712507c7463dca11a96af105f26e..4ab1cc423ed0666d0abfa5c6bf5f51dfd9e87f29 100644 (file)
@@ -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 .= "<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";