fix setting PLPcache from apache configuration
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 14 Mar 2008 23:40:49 +0000 (00:40 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Mar 2008 19:52:26 +0000 (20:52 +0100)
Apache has been split from PLP package, so need to specify variable
explicitly.

PLP/Apache.pm

index 6b28f949f1f0b6fd1b9ff7e6c6bc0313d148d4eb..5a9745c138c4f831c48d2ff5334d2920226de169 100644 (file)
@@ -41,8 +41,8 @@ sub init {
        
        $ENV{PLP_NAME} = $r->uri;
 
-       our $use_cache = $r->dir_config('PLPcache') !~ /^off$/i;
-#S     our $use_safe  = $r->dir_config('PLPsafe')  =~ /^on$/i;
+       $PLP::use_cache = $r->dir_config('PLPcache') !~ /^off$/i;
+#S     $PLP::use_safe  = $r->dir_config('PLPsafe')  =~ /^on$/i;
        my $path = $r->filename();
        my ($file, $dir) = File::Basename::fileparse($path);
        chdir $dir;