X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole.pm;h=325380e62a2bea70e9be0cec5f504691c25403e5;hp=249a3e9a604c874846bf9ad56030c2fc1888efce;hb=001396d36374c7060ecadea754bf3862eaf75635;hpb=83f49b1a6dd37085046213013288504696d5483e diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 249a3e9..325380e 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -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");