fix up includes with Apache::ASP
[freeside.git] / htetc / global.asa
index dace295..4358e87 100644 (file)
@@ -197,9 +197,8 @@ sub sprintAutoProfile {
 }
 
 sub include {
-  ( my $file = shift ) =~ s(^/)();
-  $Response->Include($file, @_);
-  '';
+  ( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/);
+  ${$Response->TrapInclude($file, @_)};
 }
 
 if ( defined(@DBIx::Profile::ISA) ) {