From: Simon Cozens Date: Thu, 1 Apr 2004 16:18:32 +0000 (+0000) Subject: Remove dependency on Apache. X-Git-Tag: 2.10~262 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0bc0c7fa8438a2297389c06cc4ee8cecce6cedbb;p=maypole.git Remove dependency on Apache. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@100 48953598-375a-da11-a14b-00016c27c3ee --- 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;