]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
new warn function, other small trivial changes and fixes
[maypole.git] / lib / Maypole.pm
index c970d01c0de485f7bc4fa1f506f75d75a5682c2f..b9a608518ff8d6d12ed46b0704f003293fe662a3 100644 (file)
@@ -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;