X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;fp=lib%2FMaypole.pm;h=b9a608518ff8d6d12ed46b0704f003293fe662a3;hb=32ecafee815b0fd8043c0acc2c785f5748fc20ff;hp=c970d01c0de485f7bc4fa1f506f75d75a5682c2f;hpb=427f0f2ec634f60fa90e60f5d3a048b6e1fc5f8b;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index c970d01..b9a6085 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -808,9 +808,9 @@ sub is_model_applicable { if (not $ok) { - warn "We don't have that table ($table).\n" + $self->warn ("We don't have that table ($table).\n" . "Available tables are: " - . join( ",", keys %$ok_tables ) + . join( ",", keys %$ok_tables )) if $self->debug and not $ok_tables->{$table}; return DECLINED; @@ -820,7 +820,7 @@ sub is_model_applicable { my $action = $self->action; return OK if $self->model_class->is_public($action); - warn "The action '$action' is not applicable to the table '$table'" + $self->warn("The action '$action' is not applicable to the table '$table'") if $self->debug; return DECLINED;