]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC.pm
fixed bug in DFV model when updating object
[maypole.git] / lib / Apache / MVC.pm
index e604998617e7ae7cf493faa40900881e54090380..e9caa396679f3f652745b9a6bdeb1432ed111b19 100644 (file)
@@ -105,6 +105,21 @@ sub get_request {
 
 =cut
 
+sub warn {
+  my ($self,@args) = @_;
+  my ($package, $line) = (caller)[0,2];
+  if ( $args[0] and ref $self ) {
+    $self->{ar}->warn("[$package line $line] ", @args) ;
+  } else {
+    print "warn called by ", caller, " with ", @_, "\n";
+  }
+  return;
+}
+
+=item warn
+
+=cut
+
 sub parse_location {
     my $self = shift;