use strict;
use warnings;
-our $VERSION = '1.00';
+our $VERSION = '1.01';
use PLP;
require Apache2::RequestRec;
require Apache2::RequestUtil;
require Apache2::RequestIO;
+ require Apache2::Log;
Apache2::Const->import(-compile => qw(
HTTP_NOT_FOUND HTTP_FORBIDDEN OK
));
$PLP::print = 'PLP::Backend::Apache::print';
$PLP::read = \&read;
+ *CORE::GLOBAL::warn = $SIG{__WARN__} = \&Apache2::ServerRec::warn if MP2;
$ENV{PLP_FILENAME} = my $filename = $r->filename;
$ENV{PLP_NAME} = $r->uri;
- $PLP::use_cache = $r->dir_config('PLPcache') !~ /^off$/i;
+ $PLP::use_cache = ($r->dir_config('PLPcache') || 'on') !~ /^off$/i;
#S $PLP::use_safe = $r->dir_config('PLPsafe') =~ /^on$/i;
my $path = $r->filename();
my ($file, $dir) = File::Basename::fileparse($path);