$::locale = undef;
$::form = undef;
$::myconfig = ();
- Form::disconnect_standard_dbh();
+ Form::disconnect_standard_dbh unless $self->_interface_is_fcgi;
$::lxdebug->end_request;
$::lxdebug->leave_sub;
sub unrequire_bin_mozilla {
my $self = shift;
- return unless $self->{interface} =~ m/^(?:fastcgi|fcgid|fcgi)$/;
+ return unless $self->_interface_is_fcgi;
for (keys %INC) {
next unless m#^bin/mozilla/#;
}
}
+sub _interface_is_fcgi {
+ my $self = shift;
+ return $self->{interface} =~ m/^(?:fastcgi|fcgid|fcgi)$/;
+}
+
sub _route_request {
my $script_name = shift;