]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC.pm
new warn function, other small trivial changes and fixes
[maypole.git] / lib / Apache / MVC.pm
index e604998617e7ae7cf493faa40900881e54090380..1695bf5f525d0332a5810b565f4acdc8f02c5886 100644 (file)
@@ -101,6 +101,17 @@ sub get_request {
     $self->ar($ar);
 }
 
+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 parse_location
 
 =cut