From 0bc0c7fa8438a2297389c06cc4ee8cecce6cedbb Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 1 Apr 2004 16:18:32 +0000 Subject: [PATCH] Remove dependency on Apache. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@100 48953598-375a-da11-a14b-00016c27c3ee --- lib/Maypole/View/TT.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5