From: cjwatson <> Date: Fri, 6 Jun 2003 09:23:25 +0000 (-0800) Subject: [project @ 2003-06-06 02:23:25 by cjwatson] X-Git-Tag: release/2.6.0~868 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9c95e269a8a569e57e297c5297eda2f045cee31f;p=debbugs.git [project @ 2003-06-06 02:23:25 by cjwatson] Update allbugs() for the hashed database layout (not that anything currently uses allbugs(), but something might in the future, since the old static HTML interface provided db/ix/full.html). It's now a trivial wrapper around getbugs(). --- diff --git a/cgi/common.pl b/cgi/common.pl index ff79e42b..14d1ab37 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -317,15 +317,7 @@ sub mboxurl { } sub allbugs { - my @bugs = (); - - opendir(D, "$debbugs::gSpoolDir/db") or &quitcgi("opendir db: $!"); - @bugs = sort {$a<=>$b} grep s/\.status$//, - (grep m/^[0-9]+\.status$/, - (readdir(D))); - closedir(D); - - return @bugs; + return @{getbugs(sub { 1 })}; } sub htmlizebugs {