X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FView%2FTT.pm;h=bdcebb2fee120f62e7ac46f31efd5f89847f75d3;hb=0bc0c7fa8438a2297389c06cc4ee8cecce6cedbb;hp=4bd7c0ebb836af2acd0817aba039b1da8b58b7e1;hpb=fb48746a79e660e7f5df5a22269ca9e22519eaa5;p=maypole.git diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm index 4bd7c0e..bdcebb2 100644 --- a/lib/Maypole/View/TT.pm +++ b/lib/Maypole/View/TT.pm @@ -1,5 +1,4 @@ package Maypole::View::TT; -use Apache::Constants; use Lingua::EN::Inflect; use Template; use File::Spec; @@ -71,7 +70,7 @@ sub process { sub error { my ($self, $r, $error) = @_; warn $error; - if ($error =~ /not found$/) { return DECLINED } + if ($error =~ /not found$/) { return -1 } $r->{content_type} = "text/plain"; $r->{output} = $error; $r->send_output;