use Apache inside an eval BLOCK was mucking things up for the non-mod_perl folks
authorivan <ivan>
Wed, 30 May 2001 15:17:08 +0000 (15:17 +0000)
committerivan <ivan>
Wed, 30 May 2001 15:17:08 +0000 (15:17 +0000)
FS/FS/CGI.pm

index 198477c..6078ad9 100644 (file)
@@ -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;
   }