X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htetc%2Fglobal.asa;h=782e06223321565d05fba4591a82df57e7b7c651;hb=7d71bc6919b9708429b9ef0be46ad5f339aaf857;hp=a773bb92fb965523295ada982dd5d84793fdc0e8;hpb=e5f676566d9fd2dd61d5e48c26ccd9f4387f8cc8;p=freeside.git diff --git a/htetc/global.asa b/htetc/global.asa index a773bb92f..782e06223 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -14,6 +14,11 @@ use Tie::IxHash; use HTML::Entities; use IO::Handle; use IO::File; +use Net::Whois::Raw qw(whois); +if ( $] < 5.006 ) { + eval "use Net::Whois::Raw 0.32 qw(whois)"; + die $@ if $@; +} use Business::CreditCard; use String::Approx qw(amatch); use Chart::LinesPoints; @@ -196,9 +201,10 @@ sub sprintAutoProfile { } sub include { - ( my $file = shift ) =~ s(^/)(); - $Response->Include($file, @_); - ''; + ( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/); + #broken in 5.005# ${$Response->TrapInclude($file, @_)}; + my $ref = $Response->TrapInclude($file, @_); + $$ref; } if ( defined(@DBIx::Profile::ISA) ) {