From 9c95e269a8a569e57e297c5297eda2f045cee31f Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Fri, 6 Jun 2003 01:23:25 -0800 Subject: [PATCH] [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(). --- cgi/common.pl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 { -- 2.39.5