Skip to content

Commit 904922a

Browse files
committed
Ensure CGI::Lingua 0.61
1 parent aee87d5 commit 904922a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cgi-bin/page.fcgi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use Log::WarnDie 0.09;
2727
use CGI::ACL;
2828
use CGI::Carp qw(fatalsToBrowser);
2929
use CGI::Info;
30-
use CGI::Lingua;
30+
use CGI::Lingua 0.61;
3131
use CHI;
3232
use Class::Simple;
3333
use File::Basename;
@@ -206,7 +206,6 @@ while($handling_request = ($request->Accept() >= 0)) {
206206
my $start = [Time::HiRes::gettimeofday()];
207207

208208
# TODO: Make this neater
209-
# Tries again without the database if it can't be opened
210209
try {
211210
doit(debug => 0);
212211
my $timetaken = Time::HiRes::tv_interval($start);
@@ -321,6 +320,7 @@ sub doit
321320
return;
322321
}
323322
}
323+
324324
# Increment request count
325325
$rate_limit_cache->set($client_ip, $request_count + 1, $TIME_WINDOW);
326326

@@ -486,6 +486,7 @@ sub doit
486486
# Pass in handles to the databases
487487
print $display->as_string({
488488
cachedir => $cachedir,
489+
databasedir => $database_dir,
489490
database_dir => $database_dir,
490491
index => $index,
491492
});

0 commit comments

Comments
 (0)