From: Aaron Trevena Date: Fri, 3 Aug 2007 18:06:16 +0000 (+0000) Subject: fix to last commit X-Git-Tag: 2.12+2.121~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=commitdiff_plain;h=001396d36374c7060ecadea754bf3862eaf75635 fix to last commit git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@581 48953598-375a-da11-a14b-00016c27c3ee --- 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");