X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=htetc%2Fglobal.asa;h=55cc8ed9465a591eee951c187bed3b1db3157f96;hb=4e4a935e10dad30648d9d9ebb2069ca80217dc72;hp=a773bb92fb965523295ada982dd5d84793fdc0e8;hpb=e5f676566d9fd2dd61d5e48c26ccd9f4387f8cc8;p=freeside.git diff --git a/htetc/global.asa b/htetc/global.asa index a773bb92f..55cc8ed94 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -14,6 +14,7 @@ use Tie::IxHash; use HTML::Entities; use IO::Handle; use IO::File; +use Net::Whois::Raw qw(whois); use Business::CreditCard; use String::Approx qw(amatch); use Chart::LinesPoints; @@ -196,9 +197,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) ) {