]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
fix for CGI handler when fatal error, improved makefile
[maypole.git] / lib / Maypole.pm
index 249a3e9a604c874846bf9ad56030c2fc1888efce..fd39cfa5bff4f467001f662a7cf2bdd645216edd 100644 (file)
@@ -12,7 +12,7 @@ use URI::QueryParam;
 use NEXT;
 use File::MMagic::XS qw(:compat);
 
-our $VERSION = '2.121';
+our $VERSION = '2.13';
 our $mmagic = File::MMagic::XS->new();
 
 # proposed privacy conventions:
@@ -575,7 +575,7 @@ sub handler_guts {
 
   # process request with model if applicable and template not set.
   if ($applicable) {
-    unless ($r->{template}) {
+    unless ($self->{template}) {
       eval { $self->model_class->process($self) };
       if ( my $error = $@ ) {
        $status = $self->call_exception($error, "model");