]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/View/Base.pm
warn only with debug on.
[maypole.git] / lib / Maypole / View / Base.pm
index fdc66298adf38c5db34cb02258197ff5a2e441dd..b577364ada5c80511ecb8e7bda4a3b6ca47de072 100644 (file)
@@ -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;
 }