From: Don Armstrong Date: Tue, 1 Oct 2013 19:39:12 +0000 (-0700) Subject: use sub style of constants to avoid needing mod_perl always X-Git-Tag: release/2.6.0~281 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=c8f3903071c757e2273c9b91c659fcdc8bb035ff use sub style of constants to avoid needing mod_perl always --- diff --git a/Debbugs/Libravatar.pm b/Debbugs/Libravatar.pm index 283db41..81668a7 100644 --- a/Debbugs/Libravatar.pm +++ b/Debbugs/Libravatar.pm @@ -244,7 +244,7 @@ sub handler { my $location = $r->location(); my ($email) = $uri =~ m/\Q$location\E\/?(.*)$/; if (not length $email) { - return Apache2::Const::NOT_FOUND; + return Apache2::Const::NOT_FOUND(); } my $q = CGI::Simple->new(); my %param = cgi_parameters(query => $q, @@ -285,7 +285,7 @@ sub serve_cache_mod_perl { } $r->filename($cache_location); $r->path_info(''); - $r->finfo(APR::Finfo::stat($cache_location, APR::Const::FINFO_NORM, $r->pool)); + $r->finfo(APR::Finfo::stat($cache_location, APR::Const::FINFO_NORM(), $r->pool)); } =back