]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
removed warnings about calling standard templates
[maypole.git] / lib / Maypole.pm
index e4c0f7318e8847c1d38504ec2df014dda1a38f5e..f7699c3c259adc050d701d1a20d7a30be154aa46 100644 (file)
@@ -1,6 +1,5 @@
 package Maypole;
 use base qw(Class::Accessor::Fast Class::Data::Inheritable);
-use attributes ();
 use UNIVERSAL::require;
 use strict;
 use warnings;
@@ -63,6 +62,7 @@ sub handler {
     my $r = bless { config => $class->config }, $class;
     $r->get_request($req);
     $r->parse_location();
+    warn "Request path: $r->{path}" if $r->debug;
     my $status = $r->handler_guts();
     return $status unless $status == OK;
     $r->send_output;
@@ -134,7 +134,8 @@ sub is_applicable {
       . "Available tables are: "
       . join( ",", @{ $config->{display_tables} } )
       if $self->debug
-      and not $config->ok_tables->{ $self->{table} };
+      and not $config->ok_tables->{ $self->{table} }
+      and $self->{action};
     return DECLINED() unless exists $config->ok_tables->{ $self->{table} };
 
     # Is it public?