]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-06-06 02:23:25 by cjwatson]
authorcjwatson <>
Fri, 6 Jun 2003 09:23:25 +0000 (01:23 -0800)
committercjwatson <>
Fri, 6 Jun 2003 09:23:25 +0000 (01:23 -0800)
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

index ff79e42b25dee96d2f4734984ce10fba53c290a4..14d1ab37d10be64ab0df8bf28acdb1fb53e2c66d 100644 (file)
@@ -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 {