use recommended apache2 constants
[perl/plp/.git] / PLP / Apache.pm
index fd2607bf13f0f5bd82901ceb90d2315cb6d52601..c3880957e7a405ad9a34dc4ad37d1207eacbf718 100644 (file)
@@ -30,10 +30,10 @@ sub init {
        $ENV{PLP_FILENAME} = my $filename = $r->filename;
        
        unless (-f $filename) {
-               return MP2 ? Apache2::Const::NOT_FOUND() : Apache::Constants::NOT_FOUND();
+               return MP2 ? Apache2::Const::HTTP_NOT_FOUND() : Apache::Constants::NOT_FOUND();
        }
        unless (-r _) {
-               return MP2 ? Apache2::Const::FORBIDDEN() : Apache::Constants::FORBIDDEN();
+               return MP2 ? Apache2::Const::HTTP_FORBIDDEN() : Apache::Constants::FORBIDDEN();
        }
        
        $ENV{PLP_NAME} = $r->uri;