summaryrefslogtreecommitdiff
path: root/htetc/global.asa
diff options
context:
space:
mode:
authorivan <ivan>2003-07-03 23:00:07 +0000
committerivan <ivan>2003-07-03 23:00:07 +0000
commitd3eefd3591dbd54a1626cca247c7a34b57d89f96 (patch)
tree9158f05305a593cc2627e50aa70b60a53f07f018 /htetc/global.asa
parent1116af6d9150abdf8e0438f45c78b357ab8820a6 (diff)
working DBIx::Profile again
Diffstat (limited to 'htetc/global.asa')
-rw-r--r--htetc/global.asa8
1 files changed, 6 insertions, 2 deletions
diff --git a/htetc/global.asa b/htetc/global.asa
index 555364223..d87f1eac6 100644
--- a/htetc/global.asa
+++ b/htetc/global.asa
@@ -110,8 +110,12 @@ sub Script_OnFlush {
my $ref = $Response->{BinaryRef};
#$$ref = $cgi->header( @FS::CGI::header ) . $$ref;
#$$ref = $cgi->header() . $$ref;
- if ( dbh->can('sprintProfile') ) {
- if ( lc($Response->{ContentType}) eq 'text/html' ) {
+ #warn "Script_OnFlush called with dbh ". dbh. "\n";
+ #if ( dbh->can('sprintProfile') ) {
+ if ( UNIVERSAL::can(dbh,'sprintProfile') ) {
+ #warn "dbh can sprintProfile\n";
+ if ( lc($Response->{ContentType}) eq 'text/html' ) { #con
+ #warn "contenttype is sprintProfile\n";
$$ref =~ s/<\/BODY>[\s\n]*<\/HTML>[\s\n]*$//i
or warn "can't remove";