From 58286f44f06df2a424e09f50312616b96832b30d Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 30 Jul 2007 11:04:03 +0200 Subject: [PATCH] use recommended apache2 constants According to mod_perl documentation (porting/compat): REDIRECT and similar constants have been deprecated in Apache for years, in favor of the HTTP_* names (they no longer exist Apache 2.0). mod_perl 2.0 API performs the following aliasing behind the scenes --- PLP/Apache.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PLP/Apache.pm b/PLP/Apache.pm index fd2607b..c388095 100644 --- a/PLP/Apache.pm +++ b/PLP/Apache.pm @@ -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; -- 2.30.0