]> git.donarmstrong.com Git - debbugs.git/commitdiff
use sub style of constants to avoid needing mod_perl always
authorDon Armstrong <don@donarmstrong.com>
Tue, 1 Oct 2013 19:39:12 +0000 (12:39 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 1 Oct 2013 19:39:12 +0000 (12:39 -0700)
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