summaryrefslogtreecommitdiff
path: root/FS/FS/CGI.pm
diff options
context:
space:
mode:
authorivan <ivan>2002-02-09 18:24:02 +0000
committerivan <ivan>2002-02-09 18:24:02 +0000
commit0bdec843e4a9bb7f947c9ba980a40f7bf37020fb (patch)
tree091a5f2de8c7b85362fd68eff63f111788c1b45c /FS/FS/CGI.pm
parent4609bb519b7fdf0eace6523fee49752cdb82a1ef (diff)
no more exit() in templates
Diffstat (limited to 'FS/FS/CGI.pm')
-rw-r--r--FS/FS/CGI.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm
index d1c56a2..35d2e28 100644
--- a/FS/FS/CGI.pm
+++ b/FS/FS/CGI.pm
@@ -10,7 +10,7 @@ use FS::UID;
@ISA = qw(Exporter);
@EXPORT_OK = qw(header menubar idiot eidiot popurl table itable ntable
- small_custview);
+ small_custview myexit);
=head1 NAME
@@ -132,6 +132,18 @@ Sends an HTML error message, then exits.
sub eidiot {
warn "eidiot depriciated";
idiot(@_);
+ &myexit();
+}
+
+=item myexit
+
+You probably shouldn't use this; but if you must:
+
+If running under mod_perl, calles Apache::exit, otherwise, calls exit.
+
+=cut
+
+sub myexit {
if (exists $ENV{MOD_PERL}) {
$main::Response->End()
if defined $main::Response