]> git.decadent.org.uk Git - maypole.git/commitdiff
fix to last commit
authorAaron Trevena <aaron.trevena@gmail.com>
Fri, 3 Aug 2007 18:06:16 +0000 (18:06 +0000)
committerAaron Trevena <aaron.trevena@gmail.com>
Fri, 3 Aug 2007 18:06:16 +0000 (18:06 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@581 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole.pm

index 249a3e9a604c874846bf9ad56030c2fc1888efce..325380e62a2bea70e9be0cec5f504691c25403e5 100644 (file)
@@ -575,7 +575,7 @@ sub handler_guts {
 
   # process request with model if applicable and template not set.
   if ($applicable) {
 
   # 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");
       eval { $self->model_class->process($self) };
       if ( my $error = $@ ) {
        $status = $self->call_exception($error, "model");