]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Libravatar.pm
use sub style of constants to avoid needing mod_perl always
[debbugs.git] / Debbugs / Libravatar.pm
index 283db41af2e1b6bf794d067fd36eb126a8713dce..81668a711e881427fe6bb1bada6951f633eb23a4 100644 (file)
@@ -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