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