X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FView%2FBase.pm;h=b577364ada5c80511ecb8e7bda4a3b6ca47de072;hb=bd977b8f654533448f37b0dca135003d997c0190;hp=fdc66298adf38c5db34cb02258197ff5a2e441dd;hpb=83e1c35229307f73d613c7e8b473abf41ba9b76a;p=maypole.git diff --git a/lib/Maypole/View/Base.pm b/lib/Maypole/View/Base.pm index fdc6629..b577364 100644 --- a/lib/Maypole/View/Base.pm +++ b/lib/Maypole/View/Base.pm @@ -61,10 +61,10 @@ sub vars { sub process { my ( $self, $r ) = @_; - my $status = $self->template($r); - return $self->error($r) if $status != OK; $r->{content_type} ||= "text/html"; $r->{document_encoding} ||= "utf-8"; + my $status = $self->template($r); + return $self->error($r) if $status != OK; return OK; }