diff options
author | tara%tequilarista.org <> | 2001-04-20 02:19:05 +0200 |
---|---|---|
committer | tara%tequilarista.org <> | 2001-04-20 02:19:05 +0200 |
commit | bd01f2be9e8360e147ff5e08ce1a6d706b0dc5f5 (patch) | |
tree | 1b515a09556b74332c41eebdbeb8404087d0c711 /duplicates.cgi | |
parent | 287de8ff82681183110d7f56db9859114f510360 (diff) | |
download | bugzilla-bd01f2be9e8360e147ff5e08ce1a6d706b0dc5f5.tar.gz bugzilla-bd01f2be9e8360e147ff5e08ce1a6d706b0dc5f5.tar.xz |
landing final patch for bug 76261
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-x | duplicates.cgi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/duplicates.cgi b/duplicates.cgi index 03a366763..fbd2af7d6 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -69,18 +69,18 @@ PutHeader("Most Frequently Reported Bugs"); # Open today's record of dupes my $today = &days_ago(0); -if (-e "data/mining/dupes$today.db") +if (<data/duplicates/dupes$today*>) { - dbmopen(%dbmcount, "data/mining/dupes$today", 0644) || + dbmopen(%dbmcount, "data/duplicates/dupes$today", 0644) || &die_politely("Can't open today's dupes file: $!"); } else { # Try yesterday's, then (in case today's hasn't been created yet) $today = &days_ago(1); - if (-e "data/mining/dupes$today.db") + if (<data/duplicates/dupes$today*>) { - dbmopen(%dbmcount, "data/mining/dupes$today", 0644) || + dbmopen(%dbmcount, "data/duplicates/dupes$today", 0644) || &die_politely("Can't open yesterday's dupes file: $!"); } else @@ -107,9 +107,9 @@ while (($key, $value) = each %count) # Try and open the database from "changedsince" days ago $before = &days_ago($changedsince); -if (-e "data/mining/dupes$before.db") +if (<data/duplicates/dupes$before*>) { - dbmopen(%before, "data/mining/dupes$before", 0644) && ($dobefore = 1); + dbmopen(%before, "data/duplicates/dupes$before", 0644) && ($dobefore = 1); } print Param("mostfreqhtml"); |