From 08cc56589e213542a72060234bdad49fbfeb67c2 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 30 May 2001 15:17:08 +0000 Subject: [PATCH] use Apache inside an eval BLOCK was mucking things up for the non-mod_perl folks --- FS/FS/CGI.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm index 198477ce6..6078ad96b 100644 --- a/FS/FS/CGI.pm +++ b/FS/FS/CGI.pm @@ -121,13 +121,11 @@ Sends headers and an HTML error message, then exits. =cut sub eidiot { - #warn "eidiot depriciated"; + warn "eidiot depriciated"; idiot(@_); if (exists $ENV{MOD_PERL}) { - eval { - use Apache; - Apache::exit(); - }; + require Apache; + Apache::exit(); } else { exit; } -- 2.11.0